def __init__(self, simulation_window, simulation_file=None, parent=None):
        QMdiArea.__init__(self, parent)

        if simulation_file:
            self._configuration = Configuration(simulation_file)
        else:
            self._configuration = Configuration()

        self.worker = None
        self._model = None
        self._gantt = None
        self._logs = None
        self._editor = None
        self._metrics_window = None
        self._model_window = None
        self._progress_bar = None
        self._documentation = None
        self._simulation_window = simulation_window

        self._configuration.configurationChanged.connect(
            self.configuration_changed)
        self._configuration.configurationSaved.connect(
            self.configuration_saved)

        self.showModelWindow()
Beispiel #2
0
    def __init__(self, simulation_window, simulation_file=None, parent=None):
        QMdiArea.__init__(self, parent)

        if simulation_file:
            self._configuration = Configuration(simulation_file)
        else:
            self._configuration = Configuration()

        self.worker = None
        self._model = None
        self._gantt = None
        self._logs = None
        self._editor = None
        self._metrics_window = None
        self._model_window = None
        self._progress_bar = None
        self._documentation = None
        self._simulation_window = simulation_window

        self._configuration.configurationChanged.connect(
            self.configuration_changed)
        self._configuration.configurationSaved.connect(
            self.configuration_saved)

        self.showModelWindow()
Beispiel #3
0
 def __init__(self, parent):
     QMdiArea.__init__(self, parent)
     self.setTabPosition(QTabWidget.South)  # only affects tabbed view
     self.setTabsMovable(True)  # only affects tabbed view
     self.setTabsClosable(True)  # only affects tabbed view
     self.setDocumentMode(True)  # only affects tabbed view
    def __init__(self, label=""):
        QMdiArea.__init__(self)
        ControlBase.__init__(self, label)
        self._showCloseButton = True

        self.logger = logging.getLogger(__name__)
Beispiel #5
0
 def __init__(self, parent=None):
     QMdiArea.__init__(self, parent)
Beispiel #6
0
 def __init__(self, parent):
     QMdiArea.__init__(self, parent)
     self.parent = parent;
     self.subWindowActivated.connect(self.update_window)