Update Uptated-Prototype/Class-Based-GUI-Test.py
This commit is contained in:
@@ -9,7 +9,7 @@ class MyApp(tk.Tk):
|
|||||||
Screen_Width, Screen_Height = self.winfo_screenwidth(), self.winfo_screenheight() # Getting Screen Width and Height
|
Screen_Width, Screen_Height = self.winfo_screenwidth(), self.winfo_screenheight() # Getting Screen Width and Height
|
||||||
Window_PosX, Window_PosY = (Screen_Width/2) - (Window_Width/2), (Screen_Height/2) - (Window_Height/2) # Calculate Center of Screen for the window
|
Window_PosX, Window_PosY = (Screen_Width/2) - (Window_Width/2), (Screen_Height/2) - (Window_Height/2) # Calculate Center of Screen for the window
|
||||||
self.geometry(f'{Window_Width}x{Window_Height}+{int(Window_PosX)}+{int(Window_PosY)}') # Sets Window Size And Starting Position
|
self.geometry(f'{Window_Width}x{Window_Height}+{int(Window_PosX)}+{int(Window_PosY)}') # Sets Window Size And Starting Position
|
||||||
self..minsize(Window_Width, Window_Height) # Defining Window Minimum Size
|
self.minsize(Window_Width, Window_Height) # Defining Window Minimum Size
|
||||||
|
|
||||||
self.MainTextWidget = MainTextWidget(self) # Creates Text input Frame
|
self.MainTextWidget = MainTextWidget(self) # Creates Text input Frame
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user