471,319 Members | 1,888 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,319 software developers and data experts.

wxSlider with floating point values

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
1 4632
bartonc
6,596 Expert 4TB
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.

Similar topics

reply views Thread by Scott | last post: by
5 posts views Thread by Anton Noll | last post: by
687 posts views Thread by cody | last post: by
3 posts views Thread by Mark L Pappin | last post: by
5 posts views Thread by Steffen | last post: by
15 posts views Thread by michael.mcgarry | last post: by
5 posts views Thread by Peteroid | last post: by
7 posts views Thread by thisismyidentity | last post: by
15 posts views Thread by Mukesh_Singh_Nick | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.