Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

start_view_gui.py 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. from PyQt5.QtWidgets import QMainWindow, QAction, QApplication, QMessageBox, QDesktopWidget, QTabWidget
  2. import sys
  3. from view.gui.application_settings import initialize_app_settings
  4. from view.gui.main_window import VIEWMainWindow
  5. from view.iltis_shell.main_shell import ILTISMainShell
  6. from matplotlib import pyplot as plt
  7. class ContainerWidget(QTabWidget):
  8. def __init__(self):
  9. super().__init__()
  10. self.view_main_window = VIEWMainWindow()
  11. self.iltis_main_object = ILTISMainShell()
  12. view_central_widget = self.view_main_window.centralWidget()
  13. self.iltis_main_object.import_action.triggered.connect(view_central_widget.spawn_export_dialog)
  14. view_central_widget.export_data_signal.connect(self.iltis_main_object.import_data)
  15. view_central_widget.reset_iltis_signal.connect(self.iltis_main_object.reset)
  16. self.iltis_main_object.import_action_quick.triggered.connect(view_central_widget.export_data_all)
  17. self.addTab(self.view_main_window, "VIEW")
  18. self.addTab(self.iltis_main_object.MainWindow, "ILTIS")
  19. def closeEvent(self, event):
  20. msg = "Are you sure to quit?"
  21. reply = QMessageBox.question(self, 'Message',
  22. msg, QMessageBox.Yes |
  23. QMessageBox.No, QMessageBox.No)
  24. if reply == QMessageBox.Yes:
  25. plt.close("all")
  26. event.accept()
  27. else:
  28. event.ignore()
  29. def main():
  30. # Initialize application Name, Organization Name and Domain
  31. initialize_app_settings()
  32. app = QApplication(sys.argv)
  33. ex = ContainerWidget()
  34. ex.showMaximized()
  35. sys.exit(app.exec_())
  36. if __name__ == '__main__':
  37. main()