omz:software Forums

Pythonista

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

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)


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 /Appname.app/Textures 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 8 hours 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 11 hours ago


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) — 1 reply 11 hours 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 13 hours 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 19 hours 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 20 hours 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 1 day 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 1 day 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 1 day ago


Pythonista crashes when using PIL to save PNG

This happens consistently for me, anyone else?

Started by Webmaster4o (in General) — 9 replies, latest 1 day 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 2 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 2 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 2 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)


Struggling with touch and display of images

Hi, I am pretty new to Python and coding generally, and I have been trying to learn by writing something in Pythonista that might help my daughter with her reading. The idea is that a word appears at the top of the screen (e.g. 'cow') and your score incre...

Started by richwoodham (in Questions) — 16 replies, latest 2 days ago


Using custom sound effects.

Hallo, Can I use my "custom" effects? I created the full collection piano CAF (90 keys) to make a small piano app. I created a modified copy of PIANO App and I want to use it with my effects (filename PIANO01.caf .. PIANO90.caf). The CAF files and the PIA...

Started by laszlo.j.hermann (in Questions) — 7 replies, latest 3 days ago


Bundle Identifier

Trying to compile my pythonista app with Xcode using the free thing from Xcode 7 Beta, so I don't need a paid developer license. What do I put under the Bundle Identifier???

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


Code snippet Manager iOS app

I just wondered if anyone is using a good code snippet manager app on iOS. I have Dash, but unlike the mac version you don't appear to be able to save your own snippets. At least, I can not see a way of doing it. I still find Gists and repos black magic on...

Started by Phuket2 (in Questions)


Add label to scroll view in UI editor.

In this simple demonstration code, I am adding a label to a scroll view. The scroll view is placed using the UI editor and I am adding a label to it as a subview programmatically. The label does not show up. Any suggestions? w,h = ui.get_screen_size() cla...

Started by donnieh (in Questions) — 7 replies, latest 5 days ago