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 cmdsclass 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 python_inside_m...@googlegroups.com.
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.
JP
--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/126bea24-f661-4f15-b75a-31fd1c49eb3f%40googlegroups.com.
--
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 python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/89b3d6cf-4888-45ba-81b8-f403c0e366cc%40googlegroups.com.