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

A (possible) bug in Pythonista?

I've noticed, that after you run a scene, close it, and change rotation (unlock rotation and rotate the iPad), Pythonista always crashes. What can cause it? Thanks. P. S. Using latest iOS, iPad 3.

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


I am trying to write Tkinter-like `GUI` library for iOS

Hey everyone, ShadowSlayer here. I've decided to post this thread, to give myself a little motivation. I am trying to write Tkinter-like GUI library (on top of Scene of course!) for Pythonista. Wish me luck! I will post all my updates here. P. S. Maybe I ...

Started by ShadowSlayer (in General) — 12 replies, latest 2 hours ago


How do I export to Xcode?

It might be a stupid question, but I made my own python script using Pythonista and I can't figure out how to export it as an Xcode project. I am using an iPhone 4S. Is this feature available only on iPad or what? I can't see any option about it, can anyon...

Started by Marco (in Questions) — 3 replies, latest 19 hours ago


Request: Bluetooth LE support

There's already a programming app out with support for Bluetooth LE (techBASIC), and this seems like it could be a good feature for Pythonista. Here's a site that describes communicating with a Bluetooth sensor on the iPad: http://www.byteworks.us/Byte_Wo...

Started by roger (in General) — 16 replies, latest 21 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) — 4 replies, latest 1 day ago


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 day ago


Sockets

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 1 day 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 2 days 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 2 days 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 5 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 5 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? https://gist.github.com/PyDann/bf784b3679b4a9428042 ($5 on it bring something silly I'...

Started by Dann (in Questions) — 2 replies, latest 5 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 5 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 5 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 6 days ago


Flappy Bird on Pythonista

https://gist.github.com/BashedCrab/8949577 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 6 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 7 days ago


Chaining scene.Scenes

I have written many times in this Forum that you can not call scene.run() 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 16 Apr


NLTK

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

Started by ihf (in General) — 3 replies, latest 15 Apr