Skip to content

Commit

Permalink
Made main window scalable
Browse files Browse the repository at this point in the history
Not the best scaling job due to how everything else is placed, but it's serviceable.
  • Loading branch information
Mode8fx committed Feb 28, 2022
1 parent 0e8e45c commit 5c5a673
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,9 @@ def __init__(self, master=None):
self.Config_Frame.pack(side='top')
self.Main_Notebook.add(self.Config_Frame, text='Config')
self.Main_Notebook.bind('<<NotebookTabChanged>>', self.changeMainTab, add='')
self.Main_Notebook.configure(height=int(675*screenHeightMult), width=int(1200*screenHeightMult))
# self.Main_Notebook.configure(height=int(675*screenHeightMult), width=int(1200*screenHeightMult))
self.Main_Notebook.grid(column='0', row='0')
self.Main_Notebook.place(relheight='1', relwidth='1')
if noSystemNamesFileFlag:
showerror("EzRO", "Valid SystemNames.py file not found. Using default system list.")
# Tooltips
Expand Down Expand Up @@ -2158,10 +2159,11 @@ def show_error(self, *args):

if __name__ == '__main__':
tk_root = tk.Tk()
tk_root.resizable(False, False)
tk_root.title("EzRO")
# screenHeight = tk_root.winfo_screenheight()
# screenHeightMult = screenHeight / 1440.0
tk_root.geometry('1200x675')
# tk_root.resizable(False, False)
tk_root.title("EzRO")
screenHeightMult = 1
app = EzroApp(tk_root)
app.run()
Expand Down

0 comments on commit 5c5a673

Please sign in to comment.