If anyone is familiar with any online poker client, I am looking to do the
same thing for a program I am making. I have everything working
functionally, however the slider is super ugly. A couple questions...
Is it possible to make a custom graphic to be used instead of the one
wxpython displays?
Sure. If it can be drawn on the screen (and what can't?), you can
make pretty much whatever you want.
How hard would this be to do? I would say I'm advanced begginer in wxpython
and python in general. Is it something I could tackle?
I don't think it would be very hard, but not trivial, either, for
someone at your level.
If it is possible, and isn't Herculean, where would I start to look to
figure out how to do it?
Have you seen this page?:
http://wiki.wxpython.org/CreatingCustomControls
Another way that's maybe kind of hacky but might be OK for your
purpose is to sort of cobble something together with other controls
and some event handling, put it all on its own panel, and then import
that panel whenever you need the custom slider. So for example, if
you want a slider with an image of a glazed donut moving along the
line instead of a little grey wedged shaped thing, you could probably
use a drawn-on line, a wxBitmapCtrl (both of these put on a panel
along with staticText for the readout numerals) the various
right_down, mouse move, and right up events, and update its position
accordingly to and move the image around, constraining it to the y
position of the line, then read out its x position where it lands up
and convert it to the quantity the user is selecting with the slider,
update the numerals text, and you're done.
Che
I've done the second
···
On Sun, Jun 9, 2013 at 6:58 PM, Justin Merrell <justin@toxicshock.biz> wrote: