Globals are a common shortcut when using UI. A cleaner approach is to use a custom view class, as this lets you encapsulate all of your logic in one class, and you can use instance attributes in place of globals. Custom views are a little tricky to get working in the pyui designer though.
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.