I wrote a script that converts the pyui attributes into text for copying into a py file as code. I will take a bit of manipulation to convert over some of the attributes, but it should help get you started. The code is available here.
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.
Best posts made by coomlata1
-
RE: Automatic .py-script from .pyui?
-
RE: [Share Code] File Template to automatically add an header comment block
Added this script to my GitHub repository. It extends the capabilities of the @lukaskollmer script and provides support for editing existing code header comments in scripts. Suggestions and improvements are always welcome.
-
RE: UI Orientation Issues...Staying locked
The first line in my imports was:
'from future import(absolute_import, division, print_function, unicode_literals)'
After removing that line, the orientation worked as expected and stayed locked in portrait mode. That line was put in early last year to aid in being forward compatible with Python 3 changes. The script was console based at that time with no ui.
Thanks again for your comments...great forum.
-
RE: UI Orientation Issues...Staying locked
The last 2 lines were a copy paste error. I copied the exact code to a blank script and ran it. The orientation is still not locked. I am using an iPhone 6+. I tried hard coding the frame size ...self.frame = (0, 0, 414, 736), but that didn't work either. My next thought would be to create a pyui file and load it with ui.load_view(). I read your comment about not needing a class for this. Maybe that would make a difference. Obviously I've got some things to learn. Thanks for all your input...much appreciated.