fixed 'details' toplevel issues
This commit is contained in:
parent
0cc206eb31
commit
8eb8690493
@ -717,7 +717,7 @@ class LibraryTab(ctk.CTkScrollableFrame):
|
||||
image = Image.open(io.BytesIO(image_response.content))
|
||||
image_size = image.size
|
||||
|
||||
self.toplevel_info_window(map_name, map_mod_type, map_size, image, image_size, date_created ,
|
||||
self.toplevel_info_window(map_name, map_mod_type, map_size, image, image_size, date_created,
|
||||
date_updated, stars_image, stars_image_size, ratings_text, url)
|
||||
|
||||
except requests.exceptions.RequestException as e:
|
||||
@ -731,6 +731,7 @@ class LibraryTab(ctk.CTkScrollableFrame):
|
||||
|
||||
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):
|
||||
def main_thread():
|
||||
try:
|
||||
top = ctk.CTkToplevel(self)
|
||||
if os.path.exists(os.path.join(RESOURCES_DIR, "ryuk.ico")):
|
||||
@ -807,6 +808,7 @@ class LibraryTab(ctk.CTkScrollableFrame):
|
||||
finally:
|
||||
for button_view in self.button_view_list:
|
||||
button_view.configure(state="normal")
|
||||
self.after(0, main_thread)
|
||||
|
||||
class SettingsTab(ctk.CTkFrame):
|
||||
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,
|
||||
date_created ,date_updated, stars_image, stars_image_size, ratings_text, url):
|
||||
def main_thread():
|
||||
top = ctk.CTkToplevel(self)
|
||||
top.after(210, lambda: top.iconbitmap(os.path.join(RESOURCES_DIR, "ryuk.ico")))
|
||||
top.title("Map/Mod Information")
|
||||
@ -1875,6 +1878,8 @@ class BOIIIWD(ctk.CTk):
|
||||
top.grid_columnconfigure(0, weight=1)
|
||||
top.grid_columnconfigure(1, weight=1)
|
||||
|
||||
self.after(0, main_thread)
|
||||
|
||||
def check_steamcmd_stdout(self, log_file_path, target_item_id):
|
||||
temp_file_path = log_file_path + '.temp'
|
||||
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,
|
||||
date_created ,date_updated, stars_image, stars_image_size, ratings_text, url):
|
||||
def main_thread():
|
||||
try:
|
||||
top = ctk.CTkToplevel(self)
|
||||
if os.path.exists(os.path.join(RESOURCES_DIR, "ryuk.ico")):
|
||||
@ -328,3 +329,4 @@ class LibraryTab(ctk.CTkScrollableFrame):
|
||||
finally:
|
||||
for button_view in self.button_view_list:
|
||||
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,
|
||||
date_created ,date_updated, stars_image, stars_image_size, ratings_text, url):
|
||||
def main_thread():
|
||||
top = ctk.CTkToplevel(self)
|
||||
top.after(210, lambda: top.iconbitmap(os.path.join(RESOURCES_DIR, "ryuk.ico")))
|
||||
top.title("Map/Mod Information")
|
||||
@ -748,6 +749,8 @@ class BOIIIWD(ctk.CTk):
|
||||
top.grid_columnconfigure(0, weight=1)
|
||||
top.grid_columnconfigure(1, weight=1)
|
||||
|
||||
self.after(0, main_thread)
|
||||
|
||||
def check_steamcmd_stdout(self, log_file_path, target_item_id):
|
||||
temp_file_path = log_file_path + '.temp'
|
||||
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