Removed Try, changed title of window
This commit is contained in:
parent
25035ec093
commit
6f34b09a3f
|
@ -14,7 +14,7 @@ def Launcher():
|
||||||
[sg.ReadFormButton('Make EXE',bind_return_key=True),
|
[sg.ReadFormButton('Make EXE',bind_return_key=True),
|
||||||
sg.SimpleButton('Quit', button_color=('white','firebrick3')),]]
|
sg.SimpleButton('Quit', button_color=('white','firebrick3')),]]
|
||||||
|
|
||||||
window = sg.Window('Script launcher',
|
window = sg.Window('PySimpleGUI EXE Maker',
|
||||||
auto_size_text=False,
|
auto_size_text=False,
|
||||||
auto_size_buttons=False,
|
auto_size_buttons=False,
|
||||||
default_element_size=(20,1,),
|
default_element_size=(20,1,),
|
||||||
|
@ -41,7 +41,7 @@ def Launcher():
|
||||||
command_line = 'pyinstaller -wF "{}" {} {} {} {}'.format(source_file, icon_option, workpath_option, dispath_option, specpath_option)
|
command_line = 'pyinstaller -wF "{}" {} {} {} {}'.format(source_file, icon_option, workpath_option, dispath_option, specpath_option)
|
||||||
|
|
||||||
if button is 'Make EXE':
|
if button is 'Make EXE':
|
||||||
try:
|
# try:
|
||||||
print(command_line)
|
print(command_line)
|
||||||
print('Making EXE... this will take a while.. the program has NOT locked up...')
|
print('Making EXE... this will take a while.. the program has NOT locked up...')
|
||||||
window.Refresh()
|
window.Refresh()
|
||||||
|
@ -50,8 +50,8 @@ def Launcher():
|
||||||
shutil.rmtree(folder_to_remove)
|
shutil.rmtree(folder_to_remove)
|
||||||
os.remove(file_to_remove)
|
os.remove(file_to_remove)
|
||||||
print('**** DONE ****')
|
print('**** DONE ****')
|
||||||
except:
|
# except:
|
||||||
sg.PopupError('Something went wrong')
|
# sg.PopupError('Something went wrong')
|
||||||
|
|
||||||
|
|
||||||
def runCommand(cmd, timeout=None):
|
def runCommand(cmd, timeout=None):
|
||||||
|
|
Loading…
Reference in New Issue