Re: Problems with current value of wx.SpinCtrl and EVT_SPIN

2006-04-09 Thread blackno666
Just found a solution to the problem: when using wx.EVT_SPINCTRL instead of wx.EVT_SPIN_UP, wx.EVT_SPIN_DOWN or wx.EVT_SPIN the program behaves correctly. wxWidget documentation for wxSpinCtrl states that "You may also use the wxSpinButton event macros, however the corresponding events will not b

Re: Problems with current value of wx.SpinCtrl and EVT_SPIN

2006-04-09 Thread blackno666
Yes, it "works". However buggy. When the slider is set to 0 and the up button is pressed in the SpinCtrl, the value in the SpinCtrl will be 1, but the slider will not move. There's also a discrepancy between the value displayed in the SpinCtrl and the value output by print self.spin.GetValue().

Re: Problems with current value of wx.SpinCtrl and EVT_SPIN

2006-04-09 Thread Peter Hansen
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, n

Problems with current value of wx.SpinCtrl and EVT_SPIN

2006-04-09 Thread blackno666
Hello, 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