how to insert and dipslay data from dateTimeEdit
Unsolved
General and Desktop
-
i'm using pyqt and python to create an app desktop i create a methods to store time from user but i do not know how to store this time or passe it as variable to display it in qtablewidget
def ADD_Model(self): try: cur = connection.cursor() query = "insert into models (date_de_creation) value( %s)" value = ( self.dateTimeEdit.dateTime() ) cur.execute(query, values) connection.commit() self.SignupFunction() connection.close() self.labelResult.setText("Data Inserted ") except Exception as e: self.labelResult.setText("Error Inserting Data")