Beispiel #1
0
    def add_plot(self):
        sub = PlotWindow(
            len(self.mdi.subWindowList()) + 1, self.treevar, self.variables,
            self.line_colors.copy())

        sub.layout().setContentsMargins(0, 0, 0, 0)

        self.mdi.addSubWindow(sub)

        self.focusedsub = sub
        # self.link_plots()
        sub.show()

        self.reorgsubs()
Beispiel #2
0
 def plot_button_pressed(self, e):
     if len(self._kredit_verlauf):
         plot_dialog = PlotWindow(self)
         plot_dialog.plot(self._kredit_verlauf)
         plot_dialog.exec()