Skip to content

Commit

Permalink
Remove Launch Button for Linux #56
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxLastBreath committed Dec 23, 2023
1 parent f3f108f commit 8701818
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 34 deletions.
18 changes: 9 additions & 9 deletions src/Downloads.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__TOTAL DOWNLOADS__ 61793
__TOTAL DOWNLOADS__ 61797
manager-1.0.0 - Date: 2023-07-23T02:22:07Z
Total Count: 1884
Linux Downloads: 117
Expand Down Expand Up @@ -85,28 +85,28 @@ Linux Downloads: 1402
Windows Downloads: 8749

manager-1.5.0 - Date: 2023-11-28T16:19:31Z
Total Count: 51617
Total Count: 51619
Linux Downloads: 89
Windows Downloads: 1854
Windows Downloads: 1856

manager-1.5.1 - Date: 2023-11-29T09:04:35Z
Total Count: 51681
Total Count: 51683
Linux Downloads: 8
Windows Downloads: 56

manager-1.5.2 - Date: 2023-11-29T11:29:03Z
Total Count: 52239
Total Count: 52241
Linux Downloads: 81
Windows Downloads: 477

manager-1.5.3 - Date: 2023-11-30T10:32:00Z
Total Count: 61793
Total Count: 61797
Linux Downloads: 1563
Windows Downloads: 7991
Windows Downloads: 7993



--TOTAL VERSION COUNT--
Of which Linux has: 8434 and 12% Downloads
Of which Windows has 53359 and 74% Downloads
As of <built-in function ctime> Total download count is: 61793
Of which Windows has 53363 and 74% Downloads
As of <built-in function ctime> Total download count is: 61797
16 changes: 8 additions & 8 deletions src/form.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,14 +350,14 @@ def yuzu_appdata():
img_1=self.apply_element, img_2=self.apply_element_active,
command=lambda event: self.submit()
)

# reverse scale.
self.on_canvas.image_Button(
canvas=canvas,
row=510, cul=25 + int(self.apply_element.width() / sf),
img_1=self.launch_element, img_2=self.launch_element_active,
command=lambda event: launch_GAME(self)
)
if self.os_platform == "Windows":
# reverse scale.
self.on_canvas.image_Button(
canvas=canvas,
row=510, cul=25 + int(self.apply_element.width() / sf),
img_1=self.launch_element, img_2=self.launch_element_active,
command=lambda event: launch_GAME(self)
)


# Create a submit button
Expand Down
38 changes: 21 additions & 17 deletions src/run.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
import ttkbootstrap as ttk
from modules.logger import *
from form import Manager
from modules.update import textver, check_for_updates, delete_old_exe
from modules.scaling import sf, scale

if __name__ == "__main__":
window = ttk.Window(scaling=sf)
window.title(f"TOTK Optimizer {textver}")
main = Manager(window)
window_width = scale(1200)
window_height = scale(600)
screen_width = window.winfo_screenwidth()
screen_height = window.winfo_screenheight()
x_position = (screen_width - window_width) // 2
y_position = (screen_height - window_height) // 2
window.minsize(window_width, window_height)
window.geometry(f"{window_width}x{window_height}+{x_position}+{y_position}")
window.resizable(False, False)
ttk.Style().configure('TButton', foreground='white', font=('Comic Sans MS', 10, 'bold'))
# Delete any old executables
delete_old_exe()
check_for_updates()
window.mainloop()
try:
window = ttk.Window(scaling=sf)
window.title(f"TOTK Optimizer {textver}")
main = Manager(window)
window_width = scale(1200)
window_height = scale(600)
screen_width = window.winfo_screenwidth()
screen_height = window.winfo_screenheight()
x_position = (screen_width - window_width) // 2
y_position = (screen_height - window_height) // 2
window.minsize(window_width, window_height)
window.geometry(f"{window_width}x{window_height}+{x_position}+{y_position}")
window.resizable(False, False)
ttk.Style().configure('TButton', foreground='white', font=('Comic Sans MS', 10, 'bold'))
# Delete any old executables
delete_old_exe()
check_for_updates()
window.mainloop()
except Exception as e:
log.critical("ERROR AT MAIN: " + e)

0 comments on commit 8701818

Please sign in to comment.