def OnTombol_lanjutkanButton(self, event): user_password = str(self.input_password.GetValue()) db = connect() cursor = db.cursor() isinya = "SELECT * FROM password WHERE nama='admin'" cursor.execute(isinya) kunci = cursor.fetchone()[1] if kunci == user_password: self.main = edit_data_penduduk.create(None) self.main.Show() self.Close() self.Destroy() else: self.Close() self.main = peringatan.create(None) self.main.Show()
def OnTombol_lanjutkanButton(self, event): user_password=str(self.input_password.GetValue()) db = connect() cursor = db.cursor() isinya = "SELECT * FROM password WHERE nama='admin'" cursor.execute(isinya) kunci = cursor.fetchone()[1] if kunci == user_password : self.main=edit_data_penduduk.create(None) self.main.Show() self.Close() self.Destroy() else: self.Close() self.main=peringatan.create(None) self.main.Show()
def OnKembaliButton(self, event): self.main=edit_data_penduduk.create(None) self.main.Show() self.Close()
def OnTombol_edit_pendudukButton(self, event): self.main = edit_data_penduduk.create(None) self.main.Show()
def OnKembaliButton(self, event): self.main=edit_data_penduduk.create(None) self.main.Show() self.Close() self.Destroy()
def OnTombol_edit_pendudukButton(self, event): self.main=edit_data_penduduk.create(None) self.main.Show()
def OnTombol_kembali_kemenuButton(self, event): self.main=edit_data_penduduk.create(None) self.main.Show() self.Close() self.Destroy()