mirror of
https://github.com/Anjok07/ultimatevocalremovergui.git
synced 2025-01-19 17:18:39 +01:00
Update UVR.py
This commit is contained in:
parent
2bd6194bd4
commit
3a013d1ca5
15
UVR.py
15
UVR.py
@ -85,6 +85,12 @@ elif OPERATING_SYSTEM=="Windows":
|
|||||||
right_click_button = '<Button-3>'
|
right_click_button = '<Button-3>'
|
||||||
application_extension = ".exe"
|
application_extension = ".exe"
|
||||||
|
|
||||||
|
def right_click_release_linux(window, top_win=None):
|
||||||
|
if OPERATING_SYSTEM=="Linux":
|
||||||
|
root.bind('<Button-1>', lambda e:window.destroy())
|
||||||
|
if top_win:
|
||||||
|
top_win.bind('<Button-1>', lambda e:window.destroy())
|
||||||
|
|
||||||
if not is_windows:
|
if not is_windows:
|
||||||
ssl._create_default_https_context = ssl._create_unverified_context
|
ssl._create_default_https_context = ssl._create_unverified_context
|
||||||
|
|
||||||
@ -1562,6 +1568,7 @@ class MainWindow(TkinterDnD.Tk if is_dnd_compatible else tk.Tk):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
right_click_menu.tk_popup(event.x_root,event.y_root)
|
right_click_menu.tk_popup(event.x_root,event.y_root)
|
||||||
|
right_click_release_linux(right_click_menu)
|
||||||
finally:
|
finally:
|
||||||
right_click_menu.grab_release()
|
right_click_menu.grab_release()
|
||||||
else:
|
else:
|
||||||
@ -1577,6 +1584,7 @@ class MainWindow(TkinterDnD.Tk if is_dnd_compatible else tk.Tk):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
right_click_menu.tk_popup(event.x_root,event.y_root)
|
right_click_menu.tk_popup(event.x_root,event.y_root)
|
||||||
|
right_click_release_linux(right_click_menu)
|
||||||
finally:
|
finally:
|
||||||
right_click_menu.grab_release()
|
right_click_menu.grab_release()
|
||||||
|
|
||||||
@ -1755,6 +1763,7 @@ class MainWindow(TkinterDnD.Tk if is_dnd_compatible else tk.Tk):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
right_click_menu.tk_popup(event.x_root,event.y_root)
|
right_click_menu.tk_popup(event.x_root,event.y_root)
|
||||||
|
right_click_release_linux(right_click_menu)
|
||||||
finally:
|
finally:
|
||||||
right_click_menu.grab_release()
|
right_click_menu.grab_release()
|
||||||
|
|
||||||
@ -1795,6 +1804,7 @@ class MainWindow(TkinterDnD.Tk if is_dnd_compatible else tk.Tk):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
right_click_menu.tk_popup(event.x_root,event.y_root)
|
right_click_menu.tk_popup(event.x_root,event.y_root)
|
||||||
|
right_click_release_linux(right_click_menu)
|
||||||
finally:
|
finally:
|
||||||
right_click_menu.grab_release()
|
right_click_menu.grab_release()
|
||||||
|
|
||||||
@ -1836,6 +1846,7 @@ class MainWindow(TkinterDnD.Tk if is_dnd_compatible else tk.Tk):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
right_click_menu.tk_popup(event.x_root,event.y_root)
|
right_click_menu.tk_popup(event.x_root,event.y_root)
|
||||||
|
right_click_release_linux(right_click_menu, window)
|
||||||
finally:
|
finally:
|
||||||
right_click_menu.grab_release()
|
right_click_menu.grab_release()
|
||||||
|
|
||||||
@ -2036,6 +2047,7 @@ class MainWindow(TkinterDnD.Tk if is_dnd_compatible else tk.Tk):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
right_click_menu.tk_popup(event.x_root,event.y_root)
|
right_click_menu.tk_popup(event.x_root,event.y_root)
|
||||||
|
right_click_release_linux(right_click_menu, menu_view_inputs_top)
|
||||||
finally:
|
finally:
|
||||||
right_click_menu.grab_release()
|
right_click_menu.grab_release()
|
||||||
|
|
||||||
@ -2044,8 +2056,8 @@ class MainWindow(TkinterDnD.Tk if is_dnd_compatible else tk.Tk):
|
|||||||
|
|
||||||
self.main_window_LABEL_SET(menu_view_inputs_Frame, 'Selected Inputs').grid(row=0,column=0,padx=0,pady=5)
|
self.main_window_LABEL_SET(menu_view_inputs_Frame, 'Selected Inputs').grid(row=0,column=0,padx=0,pady=5)
|
||||||
tk.Label(menu_view_inputs_Frame, textvariable=input_length_var, font=(MAIN_FONT_NAME, f"{FONT_SIZE_1}"), foreground='#13849f').grid(row=1, column=0, padx=0, pady=5)
|
tk.Label(menu_view_inputs_Frame, textvariable=input_length_var, font=(MAIN_FONT_NAME, f"{FONT_SIZE_1}"), foreground='#13849f').grid(row=1, column=0, padx=0, pady=5)
|
||||||
|
if not OPERATING_SYSTEM == "Linux":
|
||||||
ttk.Button(menu_view_inputs_Frame, text='Select Input(s)', command=lambda:input_options()).grid(row=2,column=0,padx=0,pady=10)
|
ttk.Button(menu_view_inputs_Frame, text='Select Input(s)', command=lambda:input_options()).grid(row=2,column=0,padx=0,pady=10)
|
||||||
|
|
||||||
input_files_listbox_Option = tk.Listbox(menu_view_inputs_Frame, selectmode=tk.EXTENDED, activestyle='dotbox', font=(MAIN_FONT_NAME, f"{FONT_SIZE_1}"), background='#101414', exportselection=0, width=110, height=17, relief=SOLID, borderwidth=0)
|
input_files_listbox_Option = tk.Listbox(menu_view_inputs_Frame, selectmode=tk.EXTENDED, activestyle='dotbox', font=(MAIN_FONT_NAME, f"{FONT_SIZE_1}"), background='#101414', exportselection=0, width=110, height=17, relief=SOLID, borderwidth=0)
|
||||||
input_files_listbox_vertical_scroll = ttk.Scrollbar(menu_view_inputs_Frame, orient=VERTICAL)
|
input_files_listbox_vertical_scroll = ttk.Scrollbar(menu_view_inputs_Frame, orient=VERTICAL)
|
||||||
input_files_listbox_Option.config(yscrollcommand=input_files_listbox_vertical_scroll.set)
|
input_files_listbox_Option.config(yscrollcommand=input_files_listbox_vertical_scroll.set)
|
||||||
@ -2679,6 +2691,7 @@ class MainWindow(TkinterDnD.Tk if is_dnd_compatible else tk.Tk):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
right_click_menu.tk_popup(event.x_root,event.y_root)
|
right_click_menu.tk_popup(event.x_root,event.y_root)
|
||||||
|
right_click_release_linux(right_click_menu, help_guide_opt)
|
||||||
finally:
|
finally:
|
||||||
right_click_menu.grab_release()
|
right_click_menu.grab_release()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user