Tuesday, April 30, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 398  / 1 Year ago, sat, march 4, 2023, 4:20:58

I wrote a python GUI in Tkinter for a time-clock system. The micro machine is wall mounted and the employees only have access to the touchscreen menu I programmed and a barcode swipe. I know how to get the script to start on startup, but how do I prevent them from exiting out or opening other menus? Basically the sole purpose of this console is to run the time-clock GUI.


More From » python

 Answers
3

I'd consider replacing the whole frontend with something like nodm. I've already covered the details for this in another answer.



You'd essentially start with Ubuntu Server, layer on a few packages and then create a ~/.xsession script to load your Python application. It's extremely lightweight and users can't mess around with anything else.



If the application crashes or the user finds a way to exit it, nodm will restart and will just load the app back up. Perfect for single-purpose machines.


[#40120] Sunday, March 5, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eving

Total Points: 162
Total Questions: 102
Total Answers: 112

Location: Trinidad and Tobago
Member since Thu, Dec 1, 2022
1 Year ago
;