pyGTK : knob widget

pyGTK : knob widget

Posted on 16. Aug 2007 · Comments [1]
For a GUI I'm planning to delevop later, I was looking for a PyGTK rotating knob (i.e. like the ones used as volume knobs on stereos). Having found none, I spent some time developing one. Here's the result : the code need to be cleaned, btw it is already usable.

Knob rotation can be done by moving the little dot on the knob or by using the mouse wheel while under the chosen knob.

knob

The code is heavily inspired (not to say fully stolen ;) ) from the pygtk Cairo clock widget example that can be found here

And here's the knob class 'yet dirty' code

Labels: Labels: Code
1 comments so far

Hey there,
This is exactly the widget i've been looking for for use in a touchscreen application for my final year university project!

However, when i try to download the class, I get a 403 forbidden error. Is there any chance of you being able to get it online again?

Thanks for the amazing work!

Ben

Post a comment
Name:
Website:
Optional.
Email:

Optional. Won't be posted.
Comment:
Auto paragraphing. AmiFormat is used (reference).