cwisbg

Simple pymel Gui Template

Jan 14th, 2013
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.59 KB | None | 0 0
  1. # Simple pymel Gui Template
  2.  
  3. def checkMe():
  4.     boxValue = checkBox1.getValue()
  5.     print "Checked", boxValue
  6. def buttonPressed():
  7.     textValue = text.getText()
  8.     print "button Pressed"
  9. def slider1():
  10.     sliderAmount = slider1.getValue()
  11.     print sliderAmount  
  12.  
  13.  
  14. from pymel.core import *    
  15. win = window(title= "Gui", s=0)
  16. mainLayout = rowColumnLayout(nc=1)
  17. text = textField()
  18. checkBox1 = checkBox(l = "Check Me", cc = Callback(checkMe))
  19. button1 = button(l="Button", command=Callback(buttonPressed))
  20. slider1 = floatSlider(dc=Callback(slider1),min = -1, max = 1)
  21.  
  22. win.show()
Advertisement
Add Comment
Please, Sign In to add comment