def ui():
main_win = cmds.window(title = "TEST", width = 600, height = 600)
tab_win = cmds.tabLayout()
# Tab Layout for Outliner
out_layout = cmds.formLayout("Outliner")
out_panel = cmds.outlinerPanel()
cmds.formLayout(out_layout, edit = True,
attachForm=[
(out_panel, "top", 0),
(out_panel, "left", 0),
(out_panel, "bottom", 0),
(out_panel, "right", 0)
])
def main():
if cmds.window("TEST", exists = True):
cmds.deleteUI("TEST")
print "The application is already opened!"
else:
ui()
WINDOW_NAME = "TEST"
def ui():
main_win = cmds.window(WINDOW_NAME, title = "TEST", width = 600, height = 600)
...
def main():
if cmds.window(WINDOW_NAME, exists = True):
cmds.deleteUI(WINDOW_NAME)
print "The application is already opened!"
else:
ui()
--
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/0a89241a-49ab-4e91-93ba-1a85c7006efd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
main_win = cmds.window(WINDOW_NAME, title = "TEST", width = 600, height = 600)
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/332e44de-2974-439e-8887-f2bb539835ee%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/0a89241a-49ab-4e91-93ba-1a85c7006efd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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.