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

Basic python question about classes

I realize that this is not a Pythonista question per se but perhaps someone here can help. If I have a function which uses the google api to translate from one language to another, is there a way to add this function as a method to the builtin str object? ...

Started by ihf (in Questions) — 7 replies, latest 1 hour ago


Pythonista Custom Keyboard iOS 8

This is slightly off topic from the regular discussions, but is there any chance that Pythonista is going to make its keyboard available system-wide with the impending release of iOS 8? I would like to be able to use it in apps other than just Pythonista.

Started by LawAbidingCactus (in General) — 5 replies, latest 9 hours ago


TableViewCell.detail_text_label

I want to use the detail_text_label on a TableViewCell but the documentation says that it's only accessible in non-default styles of the TableViewCell class, so my question is: How do I change the style of the cell?

Started by Omega0 (in Questions) — 4 replies, latest 10 hours ago


Simple Number Guessing Game

Here is a simple number guessing game I made a while back. Feel free to use for whatever.

Started by techteej (in Share Code)


Dragging an object across multiple scenes

Check out SceneViewerQuad.py which creates four scene.Scenes embedded in one ui.View. Touch the four quadrants of the screen to create colored circles. I want to drag a circle across multiple scenes and have it change colors based on the underlying scene...

Started by ccc (in Questions)


Alphabet index for TableView

is the alphabet quick index exposed in pythonista. I'm loathe to make 26 cute little buttons, but will do so if necessary.

Started by polymerchm (in General) — 2 replies, latest 15 hours ago


imageView won't appear

I'm working on an app using the ui library, and have run into a problem. Given input from the user, I will produce a plot with matplotlib, which I then plan to have appear in an imageView. The problem is that nothing happens when I press the button that's ...

Started by smath (in Questions) — 2 replies, latest 1 day ago


Task List - a simple task list app

This is my version of 'Hello World'. It is a simple app to keep track of tasks. I added a GUI to it thanks to Pythonista. https://github.com/robinsiebler/Task-List

Started by robinsiebler (in Share Code)


Error Code 422 when trying to export a folder to Gist

I am trying export a folder to Gist. When I do it, I get 422 error code. I don't have a problem exporting a single file.

Started by robinsiebler (in Questions)


ValueErrorr: Animation is in progress

In the below code, I have a form open. Clicking on the 'search' button loads another form in the 'prompt_search' function. Interacting with that form triggers the 'search_tasks' function. If the results of the search are negative, I want to close the searc...

Started by robinsiebler (in Questions) — 3 replies, latest 1 day ago


A neat feature with unhandled exceptions

Here's a small feature you may not know about: When a script generates some kind of exception that is not handled, Pythonista displays the line at which it occured. This however also suppresses the stacktrace being printed to the console, which makes find...

Started by dgelessus (in General) — 1 reply 1 day ago


Custom width for view not honored

I created a View in the UI Editor and I set the width to 650. However, when I run the app, the view is not that wide and the text in my textview is clipped. I tried manually setting the width, but it is still not working. I'm doing this on an iPad.

Started by robinsiebler (in General) — 7 replies, latest 1 day ago


Adding text to a TextView

I have a TextView in my UI called "task_textview" How do I set the text for it in my main script? I tried task_textview.text = "Foo", but I get "global name 'task_textview' is not defined". I didn't 'define' my buttons anywhere but in the UI editor and th...

Started by robinsiebler (in Questions) — 5 replies, latest 1 day ago


Number factorizer

Hey guys, just thought Id share this with you. It's a number factorizer that is designed to handle LARGE numbers (in the hundreds of thousands) and, well, factorize them. It's output is user-friendly, no duplicate factors, and they're in neat little pairs....

Started by misha_turnbull (in Share Code) — 2 replies, latest 1 day ago


Ads in a Scene?

Is there a way (or a hack) to support advertisements in a scene class? I want to show a banner ad at the top or bottom of the screen, how would I go about doing this?

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


Mixing ui and scene

When you want to use both the ui and scene modules together, SceneViewer can act as a plug-compatible replacement for scene.run(). Of course, scene.gravity() no longer works but more on that in a follow up post. In your code, replace: scene.run(MyScene(...

Started by ccc (in Share Code)


LastPass Pythonista

Here's an alternate for LastPass on iOS - I use it numerous times daily. Makes copy/pasting passwords a whole lot simpler and faster. Please critique it and pull it. I would like to add this to Pythonista Tools when ready. Thanks! https://github.com/HyS...

Started by hyshai (in General)


Returning to calling app after URL scheme call

Hi there I have a script doing some text conversion in the clipboard. I call the script via the pythonista:// URL scheme. After running the script from say iCabMobile or Drafts, ptyhonista stays open, but I would like automatically to return to the cal...

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


2048

Here is a little 2048 clone. It is focused more on being a simple example than being graphically advanced. Swipes would be nice, as would sliding tiles, but the later would complicate the class code, and the former I'm not sure how to do cleanly, except ma...

Started by henryiii (in General) — 21 replies, latest 3 days ago


Shellista- Git Clone error

I have no trouble downloading Gists but I have tried using shellista to download a git with git clone url and the first time I try it says "Error:" and the 2nd time it says "Errno 17: /.git already exists. What am I doing wrong?

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