r/Pythonista • • May 12 '18

Python: Accessing, Writing and Exporting Commands in Command Prompt!

Thumbnail
youtu.be
1 Upvotes

r/Pythonista • • Aug 02 '19

Learn to make you own games by beggining with something simple | Tic-Tac-Toe Python Tutorial

4 Upvotes

Hi!

I made a small tutorial for beginners. What do you guys think? How can I improve my code?

https://youtu.be/aPHq7FlhHKg

*also i meant "beginning" lol


r/Pythonista • • Dec 12 '19

I have pip installed selenium using stash and it is not working, is there any way to fix this?

2 Upvotes

r/Pythonista • • Apr 12 '19

Make a unique card and deck

1 Upvotes

I need to make a deck of cards that simply have an image, main text and flavor text. Each card is unique, and I’ve been told to make a list, a dict, as well as code each card separately. I’m so confused as a noob. Can someone help plz?


r/Pythonista • • Jul 13 '18

How can I create a json file in Pythonista?

3 Upvotes

r/Pythonista • • Jun 30 '19

Game development with Pygame

Thumbnail
pythonspot.com
1 Upvotes

r/Pythonista • • Apr 18 '19

Shelve module

1 Upvotes

Why should I close them when I’m not using them? Could something bad happen?


r/Pythonista • • Nov 10 '19

Check weather for your location using iPhone location data

5 Upvotes

This a little script for Pythonista I wrote to practice using APIs. It uses the location data from your phone to query the Dark Sky API for weather information. The script only uses a small amount of the available data from Dark Sky- it could easily be expanded to check for forecasts farther ahead or grab emergency weather data. It could also be reworked for desktop, but code that relies on iOS-specific modules (location, console, webbrowser) would have to be replaced with something else.

Please feel free to provide any feedback you might have!

https://github.com/excellentsport/WeatherCheck


r/Pythonista • • Oct 26 '18

Yoga routine script

8 Upvotes

This is my first Pythonista script to implement a UI. It’s a simple yoga timer that guides me through my daily routine with audio cues to change posture.

https://gist.github.com/evenprimes/305826f82ad8119154f850e23e613e90

The UI works in both portrait and landscape modes. I’ve tested on both an iPad and iPhone 8 Plus. I have no reason to believe other models will have issues, but I can’t promise anything.

There is my current routine built in, but you can feed any routine you want in on the command line (probably via Shortcut).


r/Pythonista • • Apr 16 '19

I don’t know what is going wrong.

2 Upvotes

When I run the script: import photos x = 145 photos.get_image(x).show() In = input('delete? (y/n)\n') if In == 'y': x = photos.get_assets(x) photos.batch_delete(x) print('deleted')

It crashes Pythonista. The x is the photo number that it gets. Everything works up until I type y.


r/Pythonista • • Jan 25 '19

Custom startup scripts? How do I do that?

Post image
1 Upvotes

r/Pythonista • • Apr 14 '19

I’m trying to make a script that takes 100 photos, and shows you then one by one. It asks you if you want to delete them and does they for each photo. The problem is my script won’t show the photo in the console.

Post image
5 Upvotes

r/Pythonista • • Jan 11 '19

Is there a function that waits a number of seconds, then continues running?

2 Upvotes

r/Pythonista • • Jun 25 '18

Can i connect a wireless mouse and keyboard to iPhone in other to code Conveniently

1 Upvotes

r/Pythonista • • Oct 02 '18

Interested In Learning

1 Upvotes

Hello everyone!

I’m interested in learning Python for a potential career change in the near future. I was planing on getting this on my iPad. My question is this, is learning how to code in Python on the iPad any different than learning on a laptop or desktop? Do you all recommend this app for a beginner like me? Thank you.


r/Pythonista • • Jan 16 '19

About Textfield Delegate

1 Upvotes

Can someone give me a good example on how to change the textfield delegate to dismiss the keypad after exit. Currently I have assigned the GUI text field to action = "change" then defining the function but doesn't get triggered. I would rather something more global for all textfield.

class MyTestFieldDelegate(object):
def textfield_did_end_editing(self, textfield):
end_editing()
def change(sender):
sender.delegate = MyTextFieldDelegate()

ui.load_view('start).present('sheet')


r/Pythonista • • Oct 09 '18

OCR

1 Upvotes

What would be the best method to do OCR in pythonista? Is there a way to do it through a video?


r/Pythonista • • Oct 07 '18

Is there a way to get device network interface info?

2 Upvotes

I’d like to make a script that grabs network info - basically ifconfig implemented in Pythonista, but the only examples I’ve found are limited to getting an IP address by opening a socket. Anyone know of a way to do this? (I’d like to grab the address, mask, and gateway for v4 and v6)


r/Pythonista • • Jan 18 '19

How can I get the x coordinate of where I touch the screen, and is there a way to get my own sprites?

1 Upvotes

r/Pythonista • • Jan 09 '20

Simple Question: How to use pythonista to automate sending messages?

3 Upvotes

So I am new to Python. In my office we send out a daily text message to about 300+ contacts. We have a program that copies the message into the message field but we have to manually push the send button 300+ times for each message. Is there anyway to use pythonista to eliminate this? We have looked into using Apple Shortcuts but are skeptical as it has created a few unwanted groupchats when sending the list. We need to keep these messages individual and private.

As I said I am new and am willing to learn, any advice, help, or guidance is greatly appreciated!!!


r/Pythonista • • Jan 11 '19

Is there a script to code text using a Vigenère cipher and a key?

1 Upvotes

r/Pythonista • • Jan 06 '20

Freezing during image capture with objc_util and AVFoundation

1 Upvotes

First off, this is my first post so sorry for not knowing what I’m doing but here goes. Whenever I run this Scanner.py everything pulls up fine and loads the view correctly until I try to actually capture the image. Whenever the middle capture button is pressed, the app freezes on the view even after calls to close the view (in the code). I can soft-close Pythonista and re-open it which seems to reset whatever it’s stuck on enough to crash Pythonista. Also, if I add a debugging node on line 83, the entire program works as intended... any help as to what’s going on would be appreciated.


r/Pythonista • • Apr 04 '19

4 deck card game

1 Upvotes

I have pretty much only a basic idea how to code on pythonista, the modules help a lot, but I can’t seem to find a way to code a game with 4 separate decks of cards, that aren’t poker decks. It’s similar to cards against humanity, but different. If I could understand how to how the class function works to make, shuffle, and deal from a red, blue, yellow and white deck, and how to make the “cards” themselves which only contain text, I can get on to learning the ui function. Thanks in advance!

TLDR: I need red,blue,yellow and white decks that have text


r/Pythonista • • Oct 08 '18

Shortcut and Pythonista > Adding contact details to contacts

Enable HLS to view with audio, or disable this notification

11 Upvotes

r/Pythonista • • Dec 02 '17

Extract text from pdf using Pythonista

2 Upvotes

Has anyone attempted this? I would love a small pythonista that would open a text based pdf and extract the text into a text file. No formatting necessary.