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

What is the output when run on Windows?

I do not have a Windows box. Can someone who has Python on Windows please run the following code and tell me what the output is? import os, sys, unicodedata print(sys.platform, sys.version) print(os.getenv('PYTHONIOENCODING', None)) print(sys.getdefault...

Started by ccc (in General) — 6 replies, latest 1 hour ago


Setting attributes of ui elements with RGB truples

I hope someone can help me understand dealing with RGB colours in the ui module. When I set an attribute using a so called RGB color, it does not seem to work as I would expect. In my example below, I looked up the CSS color lightcoral on the net. I got t...

Started by Phuket2 (in Questions) — 11 replies, latest 10 hours ago


Speech Recognition in Pythonista

Is there anyway to create speech recognition in pythonista? I know I can use the Google Speech Recognition API, but I would prefer no internet. Also, if you have an alternative to pyaudio I can use, that would be helpful. I am trying to create a python she...

Started by jb145491 (in General) — 10 replies, latest 22 hours ago


Beta Status Update

Unfortunately, I've recently been unable to provide a new beta version of Pythonista 1.6. This is partly my own fault, and partly due to unexpected difficulties with TestFlight. First off, I've been working on two different branches of Pythonista for quit...

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


View.close()

Is there a function or action I can refer to when a view is closed after view.present()? I want to call a function when closed. In my case, I close the view with the left blue X in the title bar.

Started by donnieh (in General) — 3 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) — 207 replies, latest 1 day ago


Set color key in scene module

Anybody here who has used the pygame module before should know about a colorkey. How do I set it? PS. In case anybody didn't know, a colorkey is a RGB(A) value that when bound to a picture, replaces all pixels that are the color of the colorkey with anoth...

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


Simplest way to dismiss the key board in a textview?

What is the simplest way to dismiss the key board in a textview?

Started by donnieh (in General) — 1 reply 4 days ago


.send_to_back()

I hope someone can shed some light on this issue for me. So if I have a valid reference to an ui element such as (ui.Button). So btn = ui.button(title='button1'). If I do btn.sendtoback() , it works as expected. But it seems when I have added btn as a subv...

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


import question

What's the different between the two? import random and from random import random

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


Space Shooter (Game for iPad)

edit: look in newer comments for updated version https://gist.github.com/a03bfdab757c1d978061 This game is far from complete. But I wanted to share it before it became incomprehensible and thus useless for new game developers! HOW TO PLAY: The point ...

Started by eliskan (in Share Code) — 15 replies, latest 4 days ago


Simlply save a variable

How would you save a variable such that it is remembered after the app is closed or deleted from the multitasking menu? #how do you "save" a? a = 10

Started by donnieh (in General) — 9 replies, latest 5 days ago


PhantomChess

Hello all As some of you may have seen in the questions section of the forum, I have been for the past month or so been working on a game of chess. It was developed entirely in Pythonista, and it is here. There are still lots of bugs, and the AI isn't w...

Started by misha_turnbull (in Share Code) — 3 replies, latest 5 days ago


SegmentedControl font size

Is there any way to control this?

Started by polymerchm (in Questions)


Simple script for drawing lines with or without arrowheads

This gist is a simple script for drawing lines with an arrowhead on either or both ends. It's pretty self-explanitory. And yes, I wrote my own matrix multiplication dot product to avoid dragging in all of numpy. from ui_draw_arrow import ui_draw_arro...

Started by polymerchm (in Share Code)


Rendering text (for classic 'Star Trek' game) using scene?

I've found a Python version of the classic text-based 'Star Trek' game. It writes loads of text to the console for star-field displays etc. I'd like to rewrite it with a static text display that updates in place, and though that the 'scene' module would b...

Started by SteveIves (in Questions) — 3 replies, latest 22 May


New Tool for manipulating pyui 's

I had been wanting a way to "re-factor" pyui files. Specifically, to group sets of views (say groups of buttons, or all views in the left side of the root view) after the fact. Here is the initial version of pyuiEdit. Should be pretty self explanatory. ...

Started by polymerchm (in Share Code) — 4 replies, latest 21 May


MapView

@OMZ is there any future plans to add a MapView to the ui module? I am working on a little app that uses location to map out places I have walked/run/whatever-ed. I can currently get around that with Google Maps API and a WebView, but I think having access...

Started by blmacbeth (in General)


How do I pass arguments from Pythonista to Workflow?

Hey guys, I can't figure out how to do this. Basically I have several sets of coordinates in Pythonista (a list for all the latitudes and a list for all the longitudes, as well as a list containing the feature names). I want to be able to choose from a lis...

Started by Oak (in General) — 6 replies, latest 20 May


touch_id how to use this

Hello I have a program where I am trying to control two objects on either side of the screen. Pythonista's help file suggests using the touchid attribute. However I do not (nor can I find) any way to determine what each touchid is nor assign it a parti...

Started by st3v3_42 (in General) — 3 replies, latest 20 May