Esempio n. 1
0
 def submit_data(self, event):
     ret, frame = self.capture.read()
     if ret:
         self.timer.Stop()
         self.capture.release()
         self._db = DB()
         last_id = self._db.insertImage(self._front_img, self._back_img,
                                        self._side_img)
         rec_window = EditForm(self, 'Rec window', id=int(last_id[0]))
         rec_window.Show()
         self.Hide()
Esempio n. 2
0
 def insertData(self, event):
     _id = event.GetEventObject().id
     rec_window = EditForm('Rec window', id=_id)
     rec_window.Show()