Well,I have gave up on Tkinter because I didn´t figure how why maya
crashes when there is a duplicated UI.
So I returned to build UI with pymel.I am trying to set the value of
the intField with the intScrollBar value.
Here is the code:
from pymel import *
window()
myColumn=columnLayout()
myIntField=intField(min=1,max=10,value=1)
myScrollBar=intScrollBar
(min=1,max=10,value=1,horizontal=False,changeCommand=intToScroll)
def intToScroll():
scrollBarValue=myScrollBar.getValue()
myIntField.setValue(scrollBarValue)
showWindow()
I don´t understannd why I get this error:
# Error: TypeError: intToScroll() takes no arguments (1 given) #
-R
--
http://groups.google.com/group/python_inside_maya