blackno666 wrote: > I am new to Python/wxPython and am experiencing first problems. I have > a dialog which includes a SpinCtrl and a Slider. I want the Slider to > affect the SpinCtrl and vice versa > (http://wiki.wxpython.org/index.cgi/ChallengeDemos#Part1). > > The code I wrote does, however, not work correctly. The event EVT_SPIN > is never handled (even though I wrote a handler), and in the handler of > EVT_SCROLL_CHANGED I do not obtain the modified value, but the value > before the control has changed.
Does it *appear* to work? That is, if you run it, does the slider move if you click on one of the spinner buttons, and does the spinner value change when you move the slider (and release the button)? Because that's what happens for me, so I'm not sure what it is that you expected it to do... (wxPython 2.6.1.0 on WinXP SP2) -Peter -- http://mail.python.org/mailman/listinfo/python-list