Skip to content

Commit

Permalink
Fixed maximized ui option raising exception on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePromidius committed May 12, 2022
1 parent 6dd7247 commit 148e313
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion MangaManager/MangaManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import logging
import os
import pathlib
import platform
import sys
import tkinter as tk
from logging.handlers import RotatingFileHandler
Expand Down Expand Up @@ -110,7 +111,11 @@ def main():
print(selection)

root = tk.Tk()
root.state('zoomed')
if platform.system() == "Linux":
root.attributes('-zoomed', True)
elif platform.system() == "Windows":
root.state('zoomed')

# root.geometry("%dx%d" % (root.winfo_width(), root.winfo_height()))
# root.geometry("")
# if selection == 3:
Expand Down

0 comments on commit 148e313

Please sign in to comment.