예제 #1
0
    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()
예제 #3
0
 def OnKembaliButton(self, event):
     self.main=edit_data_penduduk.create(None)
     self.main.Show()
     self.Close()
예제 #4
0
 def OnTombol_edit_pendudukButton(self, event):
     self.main = edit_data_penduduk.create(None)
     self.main.Show()
예제 #5
0
 def OnKembaliButton(self, event):
     self.main=edit_data_penduduk.create(None)
     self.main.Show()
     self.Close()
     self.Destroy()
예제 #6
0
 def OnTombol_edit_pendudukButton(self, event):
     self.main=edit_data_penduduk.create(None)
     self.main.Show()
예제 #7
0
 def OnTombol_kembali_kemenuButton(self, event):
     self.main=edit_data_penduduk.create(None)
     self.main.Show()
     self.Close()
     self.Destroy()