Hi friends i was try to learn python in maya and was find a code but i 
can't made it work, the error its in the 21 line with srt function, could 
some people help me with this,i don't k now what else to d, thank you.

somebody know wo it work the srt function?

import maya.cmds as cmds

class TabExample:
    
    def __init__(self):
        
        self.win = cmds.window(title="Tabble layout", wh=(300,300))
        
        self.tabs = cmds.tabLayout()
        
        firstTab = cmds.columnLayout()
        cmds.tabLayout(self.tabs, edit=True, tabLabel=[firstTab, 
'simpleTab'])
        cmds.button(label ="button")
        cmds.setParent("..")
        
        newLayout = cmds.scrollLayout()
        cmds.tabLayout(self.tabs, edit=True, tabLabel=[newLayout, 
'ScrollingTab'])
        cmds.columnLayout()
        
        for i in range (10):
            cmds.button(label ="button" + srt(i+1))
            
        cmds.setParent("..")
        cmds.setParent("..")
        
        cmds.showWindow(self.win)
            
TabExample()

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/7cfbd48b-d319-4900-9d7d-63a32612eb1e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to