Tags: aswx, float, floatctrl, input, intctrl, lib, numbers, programming, python

FloatCtrl?

On Programmer » Python

3,282 words with 4 Comments; publish: Sun, 04 May 2008 00:45:00 GMT; (20093.75, « »)

Is there a FloatCtrl which can be used to input float numbers as

wx.lib.intctrl.IntCtrl for integer?

All Comments

Leave a comment...

  • 4 Comments
    • Hi,

      I think you'r searching something like

      wx.lib.masked.numctrl.NumCrtl()

      !

      #1; Sun, 04 May 2008 00:46:00 GMT
    • Jens Petersen wrote:

      Hi,

      I think you'r searching something like

      wx.lib.masked.numctrl.NumCrtl()

      I played around for a while with the NumCtrl demo, It seems that I must

      specify the fraction width to allow input float numbers. Can it be

      configured to allow input both "3.1" and "3.1415926" without the

      annoying trailing zeros like "3.10000000"?

      #2; Sun, 04 May 2008 00:47:00 GMT
    • Hi,

      I have programmed an Integer and Float Validator a long time ago (year

      2001), adopting some ideas from PMW (python mega widgets). I created a

      small statistical tool (only in greek -

      ). It was one of my

      first programs.

      I hope you find the attached code usefull. Just execute the code to

      see a small demo.

      Nikos.

      6/21/05, Qiangning Hong <hongqn (AT) gmail (DOT) comwrote:

      Jens Petersen wrote:

      Hi,

      I think you'r searching something like

      wx.lib.masked.numctrl.NumCrtl()

      I played around for a while with the NumCtrl demo, It seems that I must

      specify the fraction width to allow input float numbers. Can it be

      configured to allow input both "3.1" and "3.1415926" without the

      annoying trailing zeros like "3.10000000"?

      #3; Sun, 04 May 2008 00:48:00 GMT
    • The attached code is exactly what I am looking for!

      Thank you very much!

      Nikos Papagrigoriou wrote:

      Hi,

      I have programmed an Integer and Float Validator a long time ago (year

      2001), adopting some ideas from PMW (python mega widgets). I created a

      small statistical tool (only in greek -

      ). It was one of my

      first programs.

      I hope you find the attached code usefull. Just execute the code to

      see a small demo.

      Nikos.

      6/21/05, Qiangning Hong <hongqn (AT) gmail (DOT) comwrote:

      >>Jens Petersen wrote:

      >>

      Hi,

      I think you'r searching something like

      wx.lib.masked.numctrl.NumCrtl()

      >>

      >>I played around for a while with the NumCtrl demo, It seems that I must

      >>specify the fraction width to allow input float numbers. Can it be

      >>configured to allow input both "3.1" and "3.1415926" without the

      >>annoying trailing zeros like "3.10000000"?

      >>

      >>Qiangning Hong

      >>

      >

      >>/ " nation must come together to unite." \

      >>| |

      >>\ George W. Bush June 4, 2001 Remark made in Tampa, Florida. /

      >

      >\ ^^

      >\ (xxx)\

      >()\ )\/\

      >U || |

      >|| ||

      >>

      >>

      >>To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org

      >>For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org

      >>

      >>

      To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org

      For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org

      #4; Sun, 04 May 2008 00:49:00 GMT