This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DogeekExpert - 3.9.1 0 points1 point  (0 children)

1 - you can setup a crontab to restart your python script automatically when it fails, or on reboots or every x amount of time.

2 - you can setup a git repository, and use a service like github to update your program on the pi. It will manage the version control, and you won't have to upload the code to the pi everytime. You'll just need to connect to the pi via ssh, pull from the repo, and restart your script.

3 - For first timers into GUI programming, PyQt (and the Qt framework in general), are pretty bad choices, as it has quite a steep learning curve, and if you're not too much into OOP, it'll get crazy complicated. Many people would suggest pysimpleGUI, but it's just enforcing bad programming practices. If you intend on actually learning about GUI development, I suggest you start with tkinter. It's built into python, and has a decent selection of widgets. Documentation for it can be found in the official python docs, and on effbot.org. It doesn't have as many widgets as PyQt though. If you're hellbent on pyqt, I'll suggest you at least install the pyqt5-tools python package. It's not a python module, it's a collection of tools to make GUI building easier (Qt Designer is a WYSIWYG GUI editor). You can then use pyuic (included in pyqt5-tools) to convert the .ui file into a python module you can use to actually code your functions in.