|
|
|
|
@ -89,10 +89,13 @@ class Main_Window(CTk):
|
|
|
|
|
self.main_container = CTkFrame(self, corner_radius=10)
|
|
|
|
|
self.main_container.pack(fill=BOTH, expand=True, padx=(0,5), pady=5,side=RIGHT)
|
|
|
|
|
|
|
|
|
|
self.lastWindow = None
|
|
|
|
|
self.lastButton = None
|
|
|
|
|
self.initiate_window(1)
|
|
|
|
|
|
|
|
|
|
def initiate_window(self,windowNumber):
|
|
|
|
|
if(windowNumber!=self.lastWindow):
|
|
|
|
|
|
|
|
|
|
buttons = [self.button1,self.button2,self.button3,self.button4]
|
|
|
|
|
self.updateButton(buttons[windowNumber-1])
|
|
|
|
|
|
|
|
|
|
@ -107,8 +110,9 @@ class Main_Window(CTk):
|
|
|
|
|
elif(windowNumber==4):
|
|
|
|
|
self.window_4()
|
|
|
|
|
|
|
|
|
|
self.lastWindow = windowNumber
|
|
|
|
|
|
|
|
|
|
def updateButton(self,button):
|
|
|
|
|
if(button != self.lastButton):
|
|
|
|
|
button.configure(fg_color="#fff", hover_color="#eee",text_color=mainColor)
|
|
|
|
|
if(self.lastButton != None):
|
|
|
|
|
self.lastButton.configure(fg_color="transparent", hover_color=contrastColor, text_color="#fff")
|
|
|
|
|
|