Skip to content

Commit 56d4911

Browse files
committed
Replaced grid() with pack() in TopLevelWindow
1 parent 8af3f8a commit 56d4911

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

CPU_Scheduler/main.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,19 +77,19 @@ class ToplevelWindow(customtkinter.CTkToplevel):
7777
def __init__(self, title):
7878
super().__init__()
7979
self.geometry("1080x720")
80-
self.grid_columnconfigure((0,1), weight=1)
81-
self.grid_rowconfigure((0, 1), weight=1)
80+
# self.grid_columnconfigure((0,1), weight=1)
81+
# self.grid_rowconfigure((0, 1), weight=1)
8282
# Back button for TOP_LEVEL WINDOW
8383
self.back_Btn = customtkinter.CTkButton(self, text="Back to Main", command=self.backToMain)
84-
self.back_Btn.grid(row=0, column=0, sticky="ew", columnspan=2)
84+
self.back_Btn.pack()
8585
# Instantiating Process Table Frame
8686
self.Process_Table_Box = ProcessTableBox(self)
87-
self.Process_Table_Box.grid(row=1, column=0, sticky="ew")
88-
87+
# self.Process_Table_Box.grid(row=1, column=0, sticky="w")
88+
self.Process_Table_Box.pack(side=customtkinter.LEFT, expand=True, fill=customtkinter.BOTH)
8989
# Instantiating Process
9090
self.Gantt_Chart_Box = GanttChartBox(self, title)
91-
self.Gantt_Chart_Box.grid(row=1, column=1, sticky="ew")
92-
91+
self.Gantt_Chart_Box.pack(side=customtkinter.RIGHT, expand=True, fill=customtkinter.BOTH)
92+
9393

9494
def backToMain(self):
9595
self.destroy()

0 commit comments

Comments
 (0)