I have looked through the Demo and can’t see any object that combines the functionality of the slider and gauge objects i.e. typical element that would be used in a control system type application.
Basically I want an object that allows a setpoint to be established by the user (slider) and then display the output using a gauge object. Is there an object that combines these two functions?
I have tried building them separately but getting the gauge element to line up properly with the slider values isn’t proving to be that easy.
I have looked through the Demo and can't see any object that combines the
functionality of the slider and gauge objects i.e. typical element that
would be used in a control system type application.
Basically I want an object that allows a setpoint to be established by the
user (slider) and then display the output using a gauge object. Is there an
object that combines these two functions?
Just in terms of the user experience, isn't the position of the "pointer"
of the slider the feedback to the user as to where that level is set?
Wouldn't a gauge next to it be overkill? Or do you feel that it is not
visually obvious enough without it?
I have tried building them separately but getting the gauge element to
line up properly with the slider values isn't proving to be that easy.
Is there any easier way?
I don't know of any. I thought Andrea may have made something like this,
but checked his site and no. I almost feel like someone also mentioned some
enhance to the slider a few years ago on this list, so maybe search the
archives. In terms of it proving to be not that easy, that sounds about
right (what *should* be easy often somehow isn't). But if you have a
question about that, post away.
···
On Mon, May 19, 2014 at 9:44 PM, Peter Milliken <peter.milliken@gmail.com>wrote:
I don’t think so…
I tried hacking around to get a gauge to basically act as a slider at one point, but ran into various problems and it just didn’t work the way I wanted it to.
To achieve what you are wanting, I believe the best way to go about it is to make a new widget that takes both of the other two’s methods and reimplement them.
Ex: SliderGauge(wx.Control)
Basically it would involve a lot of mouse position code and dc drawing code. Not real hard to do, but just another widget(or added existing widget functionality) to add to the wishlist.
Yeah, making new widget class for the many oddball tweaky things seems to be a pain and more work initially, but in the long run, it is always for the best.
The CustomCheckBox code on the wxPython wiki should get you started and/or give you a basic idea on how to start to implement something such as this.
···
On Monday, May 19, 2014 7:44:31 PM UTC-6, Peter Milliken wrote:
I have looked through the Demo and can’t see any object that combines the functionality of the slider and gauge objects i.e. typical element that would be used in a control system type application.
Basically I want an object that allows a setpoint to be established by the user (slider) and then display the output using a gauge object. Is there an object that combines these two functions?
I have tried building them separately but getting the gauge element to line up properly with the slider values isn’t proving to be that easy.
On Tuesday, May 20, 2014 2:02:37 PM UTC+10, Metallicow wrote:
On Monday, May 19, 2014 7:44:31 PM UTC-6, Peter Milliken wrote:
I have looked through the Demo and can’t see any object that combines the functionality of the slider and gauge objects i.e. typical element that would be used in a control system type application.
Basically I want an object that allows a setpoint to be established by the user (slider) and then display the output using a gauge object. Is there an object that combines these two functions?
I have tried building them separately but getting the gauge element to line up properly with the slider values isn’t proving to be that easy.
Is there any easier way?
I don’t think so…
I tried hacking around to get a gauge to basically act as a slider at one point, but ran into various problems and it just didn’t work the way I wanted it to.
To achieve what you are wanting, I believe the best way to go about it is to make a new widget that takes both of the other two’s methods and reimplement them.
Ex: SliderGauge(wx.Control)
Basically it would involve a lot of mouse position code and dc drawing code. Not real hard to do, but just another widget(or added existing widget functionality) to add to the wishlist.
Yeah, making new widget class for the many oddball tweaky things seems to be a pain and more work initially, but in the long run, it is always for the best.
The CustomCheckBox code on the wxPython wiki should get you started and/or give you a basic idea on how to start to implement something such as this.