def submit(self): data = (self.weather, self.bckg, globals()["c1"], globals()["c2"], globals()["c3"], globals()["c4"], globals()["c5"], globals()["c6"], globals()["c7"], self.font) main.add_theme(data) self.panel.destroy() d = ao.AdminNavigationPanel(self.ad_id)
def log(self): data=(self.email.get(),self.password.get()) result=main.verify_admin(data) if result is not None: self.panel.destroy() d = ao.AdminNavigationPanel(result[0]) else: self.canvas.create_text(self.xp(5), self.yp(70), text="*Incorrect Username or Password" ,fill="#9F233A", font=('Candara', self.yp(5), "bold"), anchor='nw')
def unblock(self): data = (self.email.get()) main.unblock_user(data) self.panel.destroy() d = ao.AdminNavigationPanel(self.ad_id)
def submit(self): data = (self.name.get(), self.email.get(), self.password.get()) main.add_admin(data) self.panel.destroy() d = ao.AdminNavigationPanel(self.ad_id)