fixed 'details' toplevel issues
This commit is contained in:
parent
0cc206eb31
commit
8eb8690493
@ -731,6 +731,7 @@ class LibraryTab(ctk.CTkScrollableFrame):
|
|||||||
|
|
||||||
def toplevel_info_window(self, map_name, map_mod_type, map_size, image, image_size,
|
def toplevel_info_window(self, map_name, map_mod_type, map_size, image, image_size,
|
||||||
date_created ,date_updated, stars_image, stars_image_size, ratings_text, url):
|
date_created ,date_updated, stars_image, stars_image_size, ratings_text, url):
|
||||||
|
def main_thread():
|
||||||
try:
|
try:
|
||||||
top = ctk.CTkToplevel(self)
|
top = ctk.CTkToplevel(self)
|
||||||
if os.path.exists(os.path.join(RESOURCES_DIR, "ryuk.ico")):
|
if os.path.exists(os.path.join(RESOURCES_DIR, "ryuk.ico")):
|
||||||
@ -807,6 +808,7 @@ class LibraryTab(ctk.CTkScrollableFrame):
|
|||||||
finally:
|
finally:
|
||||||
for button_view in self.button_view_list:
|
for button_view in self.button_view_list:
|
||||||
button_view.configure(state="normal")
|
button_view.configure(state="normal")
|
||||||
|
self.after(0, main_thread)
|
||||||
|
|
||||||
class SettingsTab(ctk.CTkFrame):
|
class SettingsTab(ctk.CTkFrame):
|
||||||
def __init__(self, master=None):
|
def __init__(self, master=None):
|
||||||
@ -1804,6 +1806,7 @@ class BOIIIWD(ctk.CTk):
|
|||||||
|
|
||||||
def toplevel_info_window(self, map_name, map_mod_type, map_size, image, image_size,
|
def toplevel_info_window(self, map_name, map_mod_type, map_size, image, image_size,
|
||||||
date_created ,date_updated, stars_image, stars_image_size, ratings_text, url):
|
date_created ,date_updated, stars_image, stars_image_size, ratings_text, url):
|
||||||
|
def main_thread():
|
||||||
top = ctk.CTkToplevel(self)
|
top = ctk.CTkToplevel(self)
|
||||||
top.after(210, lambda: top.iconbitmap(os.path.join(RESOURCES_DIR, "ryuk.ico")))
|
top.after(210, lambda: top.iconbitmap(os.path.join(RESOURCES_DIR, "ryuk.ico")))
|
||||||
top.title("Map/Mod Information")
|
top.title("Map/Mod Information")
|
||||||
@ -1875,6 +1878,8 @@ class BOIIIWD(ctk.CTk):
|
|||||||
top.grid_columnconfigure(0, weight=1)
|
top.grid_columnconfigure(0, weight=1)
|
||||||
top.grid_columnconfigure(1, weight=1)
|
top.grid_columnconfigure(1, weight=1)
|
||||||
|
|
||||||
|
self.after(0, main_thread)
|
||||||
|
|
||||||
def check_steamcmd_stdout(self, log_file_path, target_item_id):
|
def check_steamcmd_stdout(self, log_file_path, target_item_id):
|
||||||
temp_file_path = log_file_path + '.temp'
|
temp_file_path = log_file_path + '.temp'
|
||||||
shutil.copy2(log_file_path, temp_file_path)
|
shutil.copy2(log_file_path, temp_file_path)
|
||||||
|
@ -252,6 +252,7 @@ class LibraryTab(ctk.CTkScrollableFrame):
|
|||||||
|
|
||||||
def toplevel_info_window(self, map_name, map_mod_type, map_size, image, image_size,
|
def toplevel_info_window(self, map_name, map_mod_type, map_size, image, image_size,
|
||||||
date_created ,date_updated, stars_image, stars_image_size, ratings_text, url):
|
date_created ,date_updated, stars_image, stars_image_size, ratings_text, url):
|
||||||
|
def main_thread():
|
||||||
try:
|
try:
|
||||||
top = ctk.CTkToplevel(self)
|
top = ctk.CTkToplevel(self)
|
||||||
if os.path.exists(os.path.join(RESOURCES_DIR, "ryuk.ico")):
|
if os.path.exists(os.path.join(RESOURCES_DIR, "ryuk.ico")):
|
||||||
@ -328,3 +329,4 @@ class LibraryTab(ctk.CTkScrollableFrame):
|
|||||||
finally:
|
finally:
|
||||||
for button_view in self.button_view_list:
|
for button_view in self.button_view_list:
|
||||||
button_view.configure(state="normal")
|
button_view.configure(state="normal")
|
||||||
|
self.after(0, main_thread)
|
||||||
|
@ -677,6 +677,7 @@ class BOIIIWD(ctk.CTk):
|
|||||||
|
|
||||||
def toplevel_info_window(self, map_name, map_mod_type, map_size, image, image_size,
|
def toplevel_info_window(self, map_name, map_mod_type, map_size, image, image_size,
|
||||||
date_created ,date_updated, stars_image, stars_image_size, ratings_text, url):
|
date_created ,date_updated, stars_image, stars_image_size, ratings_text, url):
|
||||||
|
def main_thread():
|
||||||
top = ctk.CTkToplevel(self)
|
top = ctk.CTkToplevel(self)
|
||||||
top.after(210, lambda: top.iconbitmap(os.path.join(RESOURCES_DIR, "ryuk.ico")))
|
top.after(210, lambda: top.iconbitmap(os.path.join(RESOURCES_DIR, "ryuk.ico")))
|
||||||
top.title("Map/Mod Information")
|
top.title("Map/Mod Information")
|
||||||
@ -748,6 +749,8 @@ class BOIIIWD(ctk.CTk):
|
|||||||
top.grid_columnconfigure(0, weight=1)
|
top.grid_columnconfigure(0, weight=1)
|
||||||
top.grid_columnconfigure(1, weight=1)
|
top.grid_columnconfigure(1, weight=1)
|
||||||
|
|
||||||
|
self.after(0, main_thread)
|
||||||
|
|
||||||
def check_steamcmd_stdout(self, log_file_path, target_item_id):
|
def check_steamcmd_stdout(self, log_file_path, target_item_id):
|
||||||
temp_file_path = log_file_path + '.temp'
|
temp_file_path = log_file_path + '.temp'
|
||||||
shutil.copy2(log_file_path, temp_file_path)
|
shutil.copy2(log_file_path, temp_file_path)
|
||||||
|
BIN
dist/BOIIIWD.exe
vendored
BIN
dist/BOIIIWD.exe
vendored
Binary file not shown.
Loading…
Reference in New Issue
Block a user