Skip to content

Commit

Permalink
- Bug Fix
Browse files Browse the repository at this point in the history
Stopped the progress window from coming up when using the 'Debug' option in the menu
  • Loading branch information
jessielw committed Nov 3, 2020
1 parent a1c55f0 commit 114d18d
Showing 1 changed file with 23 additions and 22 deletions.
45 changes: 23 additions & 22 deletions Packages/FFMPEGAudioEncoderBatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -4211,28 +4211,29 @@ def close_encode():
except NameError:
window.destroy()


def close_window():
thread = threading.Thread(target=close_encode)
thread.start()

window = Toplevel(batch_processing_window)
window.title('Codec : ' + encoder.get() + ' | ' + str(pathlib.Path(batch_save_directory)))
window.configure(background="#434547")
encode_label = Label(window, text="- - - - - - - - - - - - - - - - - - - - - - Progress - - "
"- - - - - - - - - - - - - - - - - - - -",
font=("Times New Roman", 14), background='#434547', foreground="white")
encode_label.grid(column=0, row=0)
window.grid_columnconfigure(0, weight=1)
window.grid_rowconfigure(0, weight=1)
window.grid_rowconfigure(1, weight=1)
window.protocol('WM_DELETE_WINDOW', close_window)
encode_window_progress = Text(window, width=70, height=2, relief=SUNKEN, bd=3)
encode_window_progress.grid(row=1, column=0, pady=(10,6), padx=10)
encode_window_progress.insert(END, '')
app_progress_bar = ttk.Progressbar(window, orient=HORIZONTAL, length=630, mode='determinate')
app_progress_bar.grid(row=2, pady=(0,10))

if shell_options.get() == 'Default':
def close_window():
thread = threading.Thread(target=close_encode)
thread.start()

window = Toplevel(batch_processing_window)
window.title('Codec : ' + encoder.get() + ' | ' + str(pathlib.Path(batch_save_directory)))
window.configure(background="#434547")
encode_label = Label(window, text="- - - - - - - - - - - - - - - - - - - - - - Progress - - "
"- - - - - - - - - - - - - - - - - - - -",
font=("Times New Roman", 14), background='#434547', foreground="white")
encode_label.grid(column=0, row=0)
window.grid_columnconfigure(0, weight=1)
window.grid_rowconfigure(0, weight=1)
window.grid_rowconfigure(1, weight=1)
window.protocol('WM_DELETE_WINDOW', close_window)
encode_window_progress = Text(window, width=70, height=2, relief=SUNKEN, bd=3)
encode_window_progress.grid(row=1, column=0, pady=(10,6), padx=10)
encode_window_progress.insert(END, '')
app_progress_bar = ttk.Progressbar(window, orient=HORIZONTAL, length=630, mode='determinate')
app_progress_bar.grid(row=2, pady=(0,10))
else:
pass

# AC3 Start Job -----------------------------------------------------------------------------------------------
if encoder.get() == "AC3":
Expand Down

0 comments on commit 114d18d

Please sign in to comment.