Forum Archive

Some direction for custom UI widgets?

TutorialDoctor

Wondering how I could do custom UIs in Pythonista (inspired by the gauge someone is trying to create in another topic). I was thinking of using the webView with JqueryUI somehow.

Any way this might be done with Pythonista modules? Perhaps some type of graph drawing library?

Just need some guidance.

JonB

if your custom ui.View includes a draw method, you can use all of the ui.Path drawing features. Touch events can call set_needs_display which will force an update

brumm

Here you can find an example. If you like e.g. to put a label on the button take care of the order (see SpecialButton3.py).