I am considering porting a GUI that I wrote using the PMW library of widgets to wxPython.
In that library there is a widget that puts an up/down arrow over the top and bottom of a number entry box - this widget makes it convenient to create “thumbwheel” type groupings of these widgets.
Is there any equiv. in wxPython? I have looked at the SpinCtrl but I need to position that up/down arrows above and below of the text/number entry, not to one side of it.
Or do I need to create the widget myself?
Thanks
Peter
Thanks Mike - that is what I thought I might have to do.
Just thought it was worth asking just in case I had missed a widget or two 
···
On Friday, January 25, 2013 8:33:01 AM UTC+11, Mike Driscoll wrote:
Hi Peter,
On Thursday, January 24, 2013 2:20:06 PM UTC-6, Peter Milliken wrote:
I am considering porting a GUI that I wrote using the PMW library of widgets to wxPython.
In that library there is a widget that puts an up/down arrow over the top and bottom of a number entry box - this widget makes it convenient to create “thumbwheel” type groupings of these widgets.
Is there any equiv. in wxPython? I have looked at the SpinCtrl but I need to position that up/down arrows above and below of the text/number entry, not to one side of it.
Or do I need to create the widget myself?
Thanks
Peter
I don’t think there is a builtin widget for this. I looked at the SpinCtrl, SpinButton and FloatSpin, but they all have the buttons on the side. There are some different flags you can pass during initializing (SP_HORIZONTAL, SP_VERTICAL, etc), but none of them look like they’d do what you want. I would think you could easily simulate it though using a two buttons and a text control inside of a vertical sizer. Then you just check the text control’s value in the button event handlers and increment or decrement that value as necessary.
No problem. It would be nice if there was a widget like that, but I haven’t seen one. I wouldn’t be surprised if FloatSpin could be patched to include that though since it’s pure Python
···
On Thursday, January 24, 2013 5:14:54 PM UTC-6, Peter Milliken wrote:
Thanks Mike - that is what I thought I might have to do.
Just thought it was worth asking just in case I had missed a widget or two 