Commit e29c487b authored by Maxime Perrotin's avatar Maxime Perrotin

Update TC Store in SQLdb widget

don't open a dock widget, just store the tc in one shot
parent d0211e91
......@@ -237,12 +237,14 @@ class SQLStoreTelecommand(TC):
SQLTelemetries.session, SQLTelemetries.dbname = \
connect_to_db()
self._asn1_typename = asn1_typename
self.widget = QtGui.QPushButton('Store {} in DB'.format(asn1_typename))
self.widget.clicked.connect(self.store_in_db)
self.setWidget(self.widget)
#self.widget = QtGui.QPushButton('Store {} in DB'.format(asn1_typename))
#self.widget.clicked.connect(self.store_in_db)
#self.setWidget(self.widget)
# parent is the ASN.1 value editor
#self.setWindowTitle("Store TC in database")
self.parent = parent
self.setWindowTitle("Store TC in database")
self.store_in_db()
self.close() # it'a a one shot, not a standing widget
@staticmethod
def applicable():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment