Question : Python boa constructor slider widget how to invert min/max

I'm new to Python and am learning how to make a GUI using boa constructor and I'm using a vertical slider widget.
The default range has the max value at the bottom and the minimum value at the top.
I want to know how to reverse this.

Answer : Python boa constructor slider widget how to invert min/max

You reverse it when you determine it's value.  The inverted value is:

   self.slider1.GetMax() - self.slider1.GetValue()

For example,

    def OnSlider1Scroll(self, event):
        self.textCtrl1.SetValue(repr(self.slider1.GetMax() - self.slider1.GetValue()))



   
Random Solutions  
 
programming4us programming4us