def timestamp_dialog(self, window):
     d = WindowModalDialog(window, _("Timestamps"))
     d.setMinimumSize(900, 100)
     vbox = QVBoxLayout(d)
     self.timestamp_list = TimestampList(window, self.proofs_storage_file)
     vbox.addWidget(self.timestamp_list)
     button_add_file = EnterButton(_('Add New File'), partial(self.open_file, window))
     button_upgrade = EnterButton(_('Upgrade'), partial(self.do_upgrade, window))
     button_close = EnterButton(_('Close'), d.close)
     grid = QGridLayout()
     grid.addWidget(button_add_file, 0, 0)
     grid.addWidget(button_upgrade, 0, 1)
     grid.addWidget(button_close, 0, 2)
     vbox.addLayout(grid)
     return bool(d.exec_())
示例#2
0
 def settings_widget(self, window):
     return EnterButton(_('Settings'),
                        partial(self.settings_dialog, window))