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

Help with text colour (scene)

It's completely finished!!! However, in the last scene (restart scene) the text if for some reason black. Could you please help me make it white? Thanks in advance! Here's the code: #coding: utf-8 from scene import * from random import * import time im...

Started by Pythonistapro777 (in Share Code) — 3 replies, latest 2 minutes ago


jedi runtime errors

i have been getting the following in the latest beta, when dealing with matplotlib and numpy: /private/var/mobile/Containers/Bundle/Application/A06FE884-781E-49E6-8CD7-AF67B4583537/Pythonista.app/pylib/site-packages/jedi/parser/tree.py:126: RuntimeWarning...

Started by JonB (in General) — 3 replies, latest 8 minutes ago


Sharing code to total non-programmers

I would like to provide chordcalc to non computer types. I am at a music camp and many people have expressed in geting a copy. I'm not looking to make mony off it at this point as Gek Low build the core engine. They would have to buy pythonista, but I w...

Started by polymerchm (in Share Code) — 2 replies, latest 10 minutes ago


[SOLVED] Help with int() error (short code)

Ok, so I'm making something that counts down the number of days to an event. Here's the code to the one that works (without user input): import datetime today = datetime.date.today() someday = datetime.date(2015,8,24) diff = someday - today print(diff.d...

Started by Pythonistapro777 (in Share Code) — 2 replies, latest 21 minutes ago


[SOLVED!] Help needed (restart button)

This is the last help I will be needing for this project. At the end of the code I created a restart scene with a restart button that runs JitterClick scene. However, it doesn't restart the scene it just continues where it left off. So I need help with tha...

Started by Pythonistapro777 (in Share Code) — 2 replies, latest 1 hour ago


A copy code button here in the forum.

Maybe I am just doing something so wrong. I hope so. But I find it so hard to copy any code from the forum onto the clipboard. A small block is generally ok, a larger block of code I can normally get it, but hit and miss for me. So assuming I get the code...

Started by Phuket2 (in General) — 17 replies, latest 1 hour ago


Help with Magic8Ball (scenes)

Magic8Ball is a game that gives you advice. I've already made the game with 3 scenes. The first scene (MyScene), says the name of the game. The second scene (Help), gives instructions. The last scene (Advice), gives the advice However, I need help with mak...

Started by Pythonistapro777 (in Share Code) — 18 replies, latest 3 hours ago


Spam on the forums

Too much spam! We really need some way to regulate spam. I don't think anyone cares if it's back-end code that analyzes posts or a team of forum moderators from the community or what. Does anyone have any ideas?

Started by Gerzer (in General) — 17 replies, latest 8 hours ago


Some questions about Pythonista

Is theoretically possible to present a ui in the extension without breaking apple rules? Can you please reinsert the icloud drive implementation? Is it possible to change theme with objc_util? In editorial there is editor.get_theme(). Why not adding it in...

Started by filippocld (in Questions) — 5 replies, latest 13 hours ago


[SOLVED!] Help with uncallable error

Please help with the uncallable error. Thank's in advance! Here's the code: #coding: utf-8 import random, motion from scene import * from PIL import Image class Particle(object): def __init__(self, wh): self.w = wh.w self.h = wh.h ...

Started by Pythonistapro777 (in Share Code)


[SOLVED!] Help with counting

In this game, the player will have to click a hundred times as quickly as possible. However, I need help with calculating the time it takes them to click 100 times. Or even if I can't count the time, could you help me with creating a count loop once the bu...

Started by Pythonistapro777 (in Share Code) — 2 replies, latest 21 hours ago


Help with scene timing (short code)

How can I make desp (scene) be run 10 seconds after the first click of the button? Thanks in advance! Here's the code: import time from scene import * from PIL import Image clicks = 0 class JitterClick(Scene): def setup(self): self.button =...

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


Using 'Custom View Class' with pyui files

Sorry, I am lost with this one. I can see where in the ui designer were to put the name of my custom class. Which I have done. I put only the class name in. No parentheses etc... But from there I am lost. I thought maybe it was as magically connected that...

Started by Phuket2 (in Questions)


[Resolved!] Error in appex's script

Hello,All. Error in appex script, can not be eliminated. Please give me advice . As the goal, From the open page (Internet), it is what you want to download and save images . Thanks. download_image.py http://news.goo.ne.jp/topstories/nation/379/8ba...

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


[SOLVED] What's wrong with my code?

The click variable is meant to go up by one everytime I click the button. What do I do?. :( Thanks in advance! Here's the code: from scene import * from PIL import Image clicks = 0 class JitterClick(Scene): def setup(self): self.button = Bu...

Started by Pythonistapro777 (in Share Code) — 21 replies, latest 1 day ago


Sudden runtime error on iPad

I get an error msg now not seen before when I try to run for ex: import ui def add(a,b): result = 0 while b>0: result += a b -= 1 return result print add(3,5) NameError: global name '_debug_runtime' is not defined Or even...

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


Use Trello for a Road Map?

I use an app called Gamepress/Hyperpad on IOS to make games and game prototypes. They have recently started use Trello to update users on the progress of the app. Using Trello, users can vote for changes they want, and track the progress of each current a...

Started by TutorialDoctor (in General)


Button title animation

I just wanted to ask if it's normal that when changing a buttons title that it is animated. My buttons in a view or the title bar always do a sort of fade in. I am not sure if this is because some of my accessibility settings or it's just normal. I really ...

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


Launching Pythonista from 1.6b app extension

I'm trying to write a script for the 1.6 app extension that will: Take some text passed in from the share sheet Format the text in a specific way Place the formatted text on the pasteboard Launch Pythonista and run another script that will take the text ...

Started by fraserspeirs (in General) — 2 replies, latest 1 day ago


Started by Pythonistapro777 (in Share Code) — 1 reply 1 day ago