Just my 2c.

If you're aiming to use Qt/PyQt, the traditional cmds UI won't be necessary
at all. I've created tons of tools with PyQt for my studio and I have
almost 0 idea how to create cmds UI.


On Tue, Nov 6, 2012 at 6:01 PM, Daz <[email protected]> wrote:

> Heya
>
> I'm learning python UI scripting in maya. I tried QT and even bought
> cmiVFX tutorial about it from Justin but I still find it hard to
> understand... so I'm starting from something basic to learn the roots.
>
> I'm trying to figure out how to create a vertical tab layout in my UI...
> is vertical tab layout even possible?
>
> import maya.cmds as cmds
>
> if cmds.window(window, exists=True):
> cmds.deleteUI(window)
> window = cmds.window(menuBar=True, title='AM', sizeable = True,
> retain=False,widthHeight=(300, 200) )
>
>
> cmds.showWindow(window)
>
> fileMenu = cmds.menu( label='File')
> cmds.menuItem(l='Quit')
> helpMenu = cmds.menu(label='Info')
> cmds.menuItem(l='About')
> tabsMain = cmds.tabLayout('MainTabs')
>
> verticalCut = cmds.paneLayout('test1', configuration='vertical2' )
> leftMenuBarLayout = cmds.menuBarLayout()
>
> child1 = cmds.gridLayout(nc=1)
>
> cmds.button(l='a')
> cmds.button(l='b')
> cmds.button(l='n')
> cmds.button(l='d')
> cmds.button(l='e')
>
> cmds.setParent(child1) # here script kinda fail... I'm trying to create
> another layout next to my grid layout and put there like explorer also I
> want to use like a vertical slide to control the size... but that is miles
> away from happening hehe :) so just ignore this part unless its not a
> problem to hint me :)
> cmds.gridLayout(nc=4)
> cmds.button()
> cmds.button('52423')
>
> cmds.setParent( tabsMain )
> child2 = cmds.gridLayout('test2')
> cmds.button('wtffff')
>
>
> Thanks, bye..
>
>  --
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings:
> http://groups.google.com/group/python_inside_maya/subscribe
>

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to