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

Select a region in an image

Hello, I am a very beginner in Python. I am using Pythonista to control a camera from the Ipad. I want to show an image and select a rectangle on it by touch, and then do some processing on the selected region. How is it possible to get the pixel coordina...

Started by luigilavanga (in Questions) — 1 reply 1 hour ago


I was writing something that needs the iPad's ipaddress. ip = socket.gethostbyname(socket.gethostname()) results in socket.gaierror: [Errno 8] nodename nor servname provided, or not known Is there a way to find the ipaddress?

Started by ihf (in General) — 1 reply 2 hours ago

Pythonista for Python 3.x.

Are there any plans to release a Python 3.x variant of Pythonista?

Started by D4t4Wr4ngl3r (in General) — 57 replies, latest 13 hours ago

how to work efficient with multiple files?

Hi I'm doing some code refactoring with pythonista. It works great, except the file switching is an efficient killer. I often work with two files in different file trees. So I need to always walk up and down the directory structure only to take a quick lo...

Started by yvess (in General) — 3 replies, latest 14 hours ago

Getting info from the keychain

On my own email program, I started working to save info so users wouldn't have to enter it again, but I'm not sure how I would get that information from the keychain. Being as that it stores it as a tuple. import console import keychain import socket impo...

Started by tjferry14 (in Questions) — 1 reply 14 hours ago

pitch logic of sound.play_effect

Can anyone tell me how this parameter works? I've experimented a bit but my ear isn't accurate enough to recognise exactly what is a one-octave shift etc. My plan is to import some bass samples and use play_effect to play some tunes.

Started by cogs (in General) — 1 reply 3 days ago

Contacts in a group

How could I list all contacts in an existing group ? (pythonista contacts module) I would like to write a script that provides me with all email addresses in a contacts-group to use in emailing the group in one action.

Started by Jaap (in General) — 8 replies, latest 3 days ago

Where am I getting the silent note from?

First time using scene (may recognize some of the structuring I used)... However if you continue to tap the 'button' occasionasly a note will not be played. Any ideas? ($5 on it bring something silly I'...

Started by Dann (in Questions) — 2 replies, latest 3 days ago

Support for HTML on the clipboard?

I’m trying to place custom HTML on the Pasteboard, for use as a signature in the Mail app among other things. (The signature uses a CSS background image with Retina 2x versions and other tricks which are lost if I just select and copy it out of another ap...

Started by ferebee (in Questions) — 3 replies, latest 3 days ago

Regarding NLTK on Pythonista

Hi, I'm new to both Pythonista and to this forum. I'm slightly new to Python, spending the last 15 years or so in the Enterprise Java world. I am very interested in AI in general and computational linguistics/natural language analysis at the hobby or after...

Started by ltddev (in General) — 9 replies, latest 4 days ago

Help installing pipista module in pythonista

This seems like a dumb question, but please bear with me. Ive been trying to install pipista, the module used for installing other modules, but I havent been able to figure out what files do I place in which directory. Any place I try, it gives me an impo...

Started by jmzg1229 (in Questions) — 2 replies, latest 5 days ago

Flappy Bird on Pythonista This started out as a Flappy Bird clone (can be done in under 100 lines of Pythonista), but I let my son do a bit of a redesign. He decided an underwater setting involving an Octopus was much more enjoyable. Th...

Started by bashedcrab (in Share Code) — 19 replies, latest 5 days ago

I'm new to pythonista

I'm new to pythonista and programming on Python as I only got the app a few days ago but have had the codea app for around 2 weeks and I'm wondering how to make solid images like gound.

Started by Butler (in Questions)

Adding Landscape to Cascade

So I wanted to add a landscape mode to the cascade example, but using the scene.should_rotate didn't work. I added: def should_rotate(self, LANDSCAPE): columns = 20 But it unfortunately did not do anything. I tried searching for some help on this,...

Started by tjferry14 (in Questions) — 6 replies, latest 6 days ago

Chaining scene.Scenes

I have written many times in this Forum that you can not call multiple times but now I have proof that this is NOT true. Multiple scene.Scenes can be chained one after another as shown in the code below which runs 6 scene.Scenes one after the...

Started by ccc (in Share Code) — 2 replies, latest 6 days ago


Has anyone looked at whether it would be possible to run NTLK under Pythonista?

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

execute .py within

Is there anyway to launch another .py file while inside of or how would I go about adding that to the current code. I would like to just be able to call a script from with by just a name, like running ls but instead call my script.

Started by radlsneak (in General) — 1 reply 14 Apr

Help building a touch menu

I wanted to build a menu to execute a script, but I keep getting this error. Problem being, I don't have a line 570 in the program I am trying to launch. The code for the file I am trying to launch can be found here. I didn't modify Pythonista either. fr...

Started by tjferry14 (in Questions) — 21 replies, latest 14 Apr

What is the proper way to reset a scene?

So I am working upon this game and I am currently handling the end of the game. The problem is that after resetting the scene, a new game indeed starts but I can still see the previous game animation playing in the background. Even if I try to kill any a...

Started by mirko (in General) — 2 replies, latest 14 Apr

Sharing Files

On my PC, I'm running Windows 7. How do I share files on this with Pythonista on my iPad? I've got and use iTunes on my PC, but Pythonista isn't one of the apps that's listed there as being able to share files between PC and Tablet.

Started by alanmdunsmuir (in General) — 3 replies, latest 14 Apr