theodox / mGui

Python module for cleaner maya GUI layout syntax
MIT License
123 stars 23 forks source link

'VerticalListForm' is not defined #10

Closed atvKumar closed 10 years ago

atvKumar commented 10 years ago

There seems to be no VerticalListForm as per your code in the readme.

import mGui.gui
import mGui.observable as obs
from mGui.bindings import bind, BindingContext

bound = obs.ViewCollection(pm.PyNode("pCube1"), pm.PyNode("pPlane2"))   

with gui.Window('window', title = 'fred') as example_window:
    with BindingContext() as bind_ctx:
        with gui.VerticalForm('main') as main:
            Text(None, label = "The following items don't have vertex colors")
            VerticalListForm('lister' ).Collection < bind() < bound  
            with HorizontalStretchForm('buttons'):
                Button('refresh', l='Refresh')
                Button('close', l='Close')
example_window.show()
theodox commented 10 years ago

I've updated the readme with the correct references; there was a bad import statement. Works for me now, let me knoiw if it doesn't work after a sync

theodox commented 10 years ago

closing since there was no reply - ping me back if it still does not work