def CreateDebug(self): self = Gui(debug=False) self.resizable(width=False, height=False) self.maxsize(width=1024, height=768) self.maincol = self.col(weights=[0,0,1]) # Resizing of Windows MenuBar.Create(self) self.title('Doru\'s No Frills - Welcome') StatusBar.Create(self) WelcomeScreen.Create(self) Modules.Check.openwindow = "WelcomeScreen" self.mainloop()
def CreateSettings(self): self = Gui(debug=False) self.resizable(width=False, height=False) self.maxsize(width=1024, height=768) self.maincol = self.col(weights=[0,0,1]) # Resizing of Windows MenuBar.Create(self) self.title('Doru\'s No Frills - Store Settings') StatusBar.Create(self) StoreSettings.Create(self) Modules.Check.openwindow = "Store Settings" self.mainloop()
def ValidateLogin(self, Event=None): Accountlist = Account_Read() user = self.Login.userentry.get() passw = self.Login.passentry.get() result = Modules.ValidateLogic.Validate(user, passw, Accountlist) if result != False: self.endcol() # Ends original GUI column self.Login.destroy() Modules.Check.userlevel = result[0] Modules.Check.loggeduser = user Modules.Check.hourlywage = result[1] MenuBar.Create(self) StatusBar.Create(self) WelcomeScreen.Create(self) self.title('Doru\'s No Frills - Welcome') else: tkMessageBox.showwarning( 'Error', 'Username or password is incorrect, please retry')