By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,742 Members | 1,206 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,742 IT Pros & Developers. It's quick & easy.

wxSlider with floating point values

P: 5
Hi,
is there any way to use the slider in the range between 0 and 1 getting up to 100 or 1000 values?
Nov 23 '07 #1
Share this Question
Share on Google+
1 Reply


bartonc
Expert 5K+
P: 6,596
Hi,
is there any way to use the slider in the range between 0 and 1 getting up to 100 or 1000 values?
A subclass is the answer:
Expand|Select|Wrap|Line Numbers
  1.  
  2. class FloatSlider(wx.Slider):
  3.     def GetValue(self):
  4.         return (float(wx.Slider.GetValue(self)))/self.GetMax()
Nov 23 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.