MCPcopy Index your code
hub / github.com/PySimpleGUI/PySimpleGUI / main_command_line

Function main_command_line

PySimpleGUI/PySimpleGUI.py:26133–26154  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26131
26132# -------------------------------- ENTRY POINT IF RUN STANDALONE -------------------------------- #
26133def main_command_line():
26134 # To execute the upgrade from command line, type:
26135 # python -m PySimpleGUI upgrade
26136 if len(sys.argv) > 1:
26137 if 'version' in sys.argv:
26138 print(get_versions())
26139 elif 'upgrade' in sys.argv:
26140 upgrade_PySimpleGUI_gui()
26141 elif 'help' in sys.argv:
26142 print('PySimpleGUI command line options\n')
26143 print('python -m PySmpleGUI upgrade', '\n Open GUI upgrade utility (same as psgupgrade)\n')
26144 print('python -m PySmpleGUI upgrade x.x.x.x', '\n Upgrade to a specific maint release version number\n')
26145 print('python -m PySmpleGUI upgradenogui', '\n Show list of available maint releases on the console\n')
26146 print('python -m PySmpleGUI upgradenogui x.x.x.x', '\n Upgrade to a specific maint release on the console\n')
26147 print('python -m PySmpleGUI version', '\n Display version numbers of Python, tkinter, PSG, etc on the console\n')
26148 print('python -m help', '\n Display the SDK help window and list of command line options\n')
26149
26150 if sys.argv[-1] == 'help':
26151 main_sdk_help()
26152 exit(0)
26153 main()
26154 exit(0)
26155
26156
26157if __name__ == '__main__':

Callers 1

PySimpleGUI.pyFile · 0.85

Calls 4

get_versionsFunction · 0.85
upgrade_PySimpleGUI_guiFunction · 0.85
main_sdk_helpFunction · 0.85
mainFunction · 0.70

Tested by

no test coverage detected