omz:software Forums


If you want to participate in the discussion, you have to sign up or log in.

Categories: General, Share Code, Questions RSS (All Posts)

All Discussions utility to format code snippets for this forum

This little utility is a bit overkill but what the heck... Many people initially have difficulty formating their Python code so it looks good in posts to the Pythonisa Forum. This script attempts to properly format your code with approp...

Started by ccc (in Share Code) — 2 replies, latest 27 minutes ago

Possible Bug

I have noticed a possible bug in the UI editor of Pythonista. The issue is choosing an image for a button using the button's attribute image select option in the UI editor. As I was designing a UI with the editor, I would try out different button images f...

Started by donnieh (in General) — 1 reply 1 hour ago

Set background image of view

Can a ui.view have a background image? If so, how do I do this? Also, if not, what is the best way to make an ImageView that scales to fit the view without changing the aspect ratio of the image?

Started by Webmaster4o (in General) — 4 replies, latest 2 hours ago

Thinking out aloud, code gen for ui attr.

I mention in the comments of the code this is far from finished or polished. I am trying to get my head around a good uniform stradegy to implement some type of styles to any app I may write. I thought by writing this code, it will help me along the way. J...

Started by Phuket2 (in Share Code)

Download script into Pythonista

Hi to everyone. I would like to know if there is some way to download scripts from my Desktop PC into my iphone. Thanks for your help. Alejandro.

Started by amazzuca (in Questions) — 3 replies, latest 7 hours ago

Getting Size of a named image ?

Greetings, I feel a bit stupid, but I'm stuck trying to get the actual size of a named image, loaded in my scene through load_image_file() ! Any clue ? Thanks !

Started by momorprods (in General) — 4 replies, latest 11 hours ago

Using abstract classes with ui.View

I am just doing some testing with Abstract classes. I would like to start using them to help with the design of my classes and also help with a consistent approach. From what I read the code below should not work, it should fail as an abstract method in th...

Started by Phuket2 (in Questions)

XCode Projects

I pasted my script into the XCode template I found here on these forums. Custom sprites and sounds can be accessed from the / folder, but I've run into a couple important issues. First of all, all images and text displayed in my app's...

Started by Shambhala (in General) — 3 replies, latest 1 day ago

NavigationView Questions

Hey All, I am thrilled about the new ui module and have already made some great little apps for myself. The one thing I lack, though, is an app that has more than one View. So, my question is: how do you use NavigationView? That is all.

Started by blmacbeth (in General) — 14 replies, latest 1 day ago

Suggestion: Guides in UI editor

I would like to suggest the addition of guides in the UI editor. They would work much like in Photoshop or Keynote, where you drag out guides, and then objects snap to them.

Started by Webmaster4o (in General) — 4 replies, latest 1 day ago

Floating pallette ?? To help with testing (Pythonista v1.5)

I wanted to ask if there is a way or example code to make a version of a floating pallette. In my case at the moment, I don't want it for production code although I could see it would be great. I want it for testing my code. I keep trying to cram ui.Butto...

Started by Phuket2 (in Questions) — 4 replies, latest 1 day ago

Pythonista 1.6 Beta

So, with Apple's new TestFlight, I can finally have a lot more beta testers, and won't have to worry about device limits so much. If you'd like to play with the next version of Pythonista before it hits the App Store, please send me an email with your App...

Started by omz (in General) — 221 replies, latest 1 day ago

How can I convert a PIL Image to a ui.Image?

How can I convert a PIL Image to a ui.Image?

Started by Sebastian (in Questions) — 21 replies, latest 2 days ago

Gists Vrs Repos for sharing Pythonista code

I was reading about Gists, and the docs say that they are functionally equivalent to repos, in regards to cloning, forking etc... @ccc, I noticed you had a post before about Gists being unmanaged. Have they changed since you wrote that? Or are Gists infe...

Started by Phuket2 (in Questions) — 4 replies, latest 2 days ago

A class just to draw a grid of buttons. Has some interesting options

Just a class that draws a grid. COLS & _ROWS determine the grid size. Also in the init function where the buttons are created have a var _USE_COPY. if True is consistently , 80, 90% faster on my iPad Air 2. import ui import copy import time _ROWS = ...

Started by Phuket2 (in Share Code) — 10 replies, latest 2 days ago

Pythonista crashes when using PIL to save PNG

This happens consistently for me, anyone else?

Started by Webmaster4o (in General) — 9 replies, latest 2 days ago

Open share dialog

Can I have a script generate a PIL Image, then open the standard iOS Share menu so the image can be opened in another app?

Started by Webmaster4o (in General) — 6 replies, latest 3 days ago

AssertionError: Cannot show camera from main UI thread

I'm getting this running my script. I think it has something to do with photos.capture_image triggered by a UI button. How do I get around this? Note: If I do ui.load_ui().present() and then do photos.capture_image() on the next line, it works, I only ge...

Started by Webmaster4o (in General) — 2 replies, latest 3 days ago

UI on desktop

Is it possible to get the Pythonista UI module on a desktop ide?

Started by Webmaster4o (in General) — 7 replies, latest 3 days ago

Just observation about layout method callback in custom classes

If you present your view as a sheet it appears on an orientation change on an I pad you don't get a call to layout, which is great as it has the same bounds. Regardless in my layout code I cache the frame(after rework) and check that in the beginning of ...

Started by Phuket2 (in General)