def add_user(self, event): if addToDatabase.register_user(self.first_name, self.last_name, self.card_id): # Add user to the database dlg = wx.MessageDialog(self, 'Registration Complete!', 'Register User', wx.OK) # Show a completion dialog dlg.ShowModal() # Show Modal self.Close() # close child populateDatabase.populate_database_local() # Update the database locally after a user registers
def create_gui(): populate_database_local() application = wx.App() # create application Gui() # Call the GUI window for the grid application.MainLoop() # start its main loop