python - Slider with max value greater than 2147483647 in wxPython Phoenix? -


basically, wx.slider widget wxpython phoenix cannot go further 2147483647.

indeed,

slider = wx.slider( parent   = parent,                     value    = 10,                     minvalue = 0,                     maxvalue = 2147483647 ) print slider.getmax() 

outputs :

2147483647

whereas,

slider = wx.slider( parent   = parent,                     value    = 10,                     minvalue = 0,                     maxvalue = 2147483648 ) print slider.getmax() 

outputs :

(program.py:5403): gtk-critical **: ia__gtk_range_set_range: assertion 'min < max' failed
0

i need use bigger values widget. workaround?

have considered dividing values appropriate divisor.

edit:
there times when have pragmatic. cannot possibly display or use slider length of 2 billion. whether automatically generated or not, simpler make slider utilise values between 0% , 100%, can manipulate tooltip display value if essential accuracy of given position when using such massive number in opinion, inaccurate meaningless.


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -