Use ==/!= to compare str literals
This commit is contained in:
parent
6680820360
commit
b2ba8acb34
26 changed files with 52 additions and 60 deletions
|
@ -25,7 +25,7 @@ def Launcher():
|
|||
# ---===--- Loop taking in user input --- #
|
||||
while True:
|
||||
(button, values) = window.Read()
|
||||
if button is 'Quit' or button is None:
|
||||
if button in ('Quit', None):
|
||||
break # exit button clicked
|
||||
|
||||
source_file = values['_sourcefile_']
|
||||
|
@ -40,7 +40,7 @@ def Launcher():
|
|||
file_to_remove = os.path.join(source_path, source_filename[:-3]+'.spec')
|
||||
command_line = 'pyinstaller -wF "{}" {} {} {} {}'.format(source_file, icon_option, workpath_option, dispath_option, specpath_option)
|
||||
|
||||
if button is 'Make EXE':
|
||||
if button == 'Make EXE':
|
||||
out=''
|
||||
try:
|
||||
print(command_line)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue