diff --git a/main.py b/main.py index cc85482..26fd6d3 100644 --- a/main.py +++ b/main.py @@ -11,8 +11,13 @@ root.iconbitmap('pytext.ico') except: pass -root.geometry('400x400') -root.maxsize(height=400, width=400) +try: + wsize = open('devmode/dimensions.txt') + root.geometry(wsize) + root.maxsize(height=wsize, width=wsize) +except FileNotFoundError: + root.geometry('400x400') + root.maxsize(height=400, width=400) def save(): global count @@ -138,4 +143,4 @@ def wrap(typeofwrap): text_box.config(yscrollcommand=scroll.set) scroll.config(command=text_box.yview) -root.mainloop() \ No newline at end of file +root.mainloop()