(*args)
| 118 | |
| 119 | |
| 120 | def viewSourceClick(*args): |
| 121 | i = CURRENT_SELECTED_INDEX |
| 122 | filename = os.path.join(FOLDER_OF_THIS_FILE, PROGRAMS[i]['filename']) |
| 123 | |
| 124 | # Figure out which program to run to open the .py file: |
| 125 | if sys.platform == 'win32': |
| 126 | os.system('start ' + filename) |
| 127 | elif sys.platform == 'darwin': |
| 128 | os.system('open ' + filename) |
| 129 | elif _executable_exists('xdg-open'): |
| 130 | # LXTerminal is used on Raspberry Pis, though this closes the window as soon as the Python program quits: |
| 131 | os.system('xdg-open ' + filename) |
| 132 | elif _executable_exists('see'): |
| 133 | os.system('see ' + filename) |
| 134 | |
| 135 | |
| 136 | def undoChangesClick(*args): |
nothing calls this directly
no test coverage detected