Esempio n. 1
0
    def build_gui(self):
        self.sign_plot = self.build_plot("VAr", "W",
            title=u"Possíveis transições")
        self.sign_scatter = qt.scatter(unicolor=True)
        self.sign_plot.addItem(self.sign_scatter)

        self.next_row()

        self.power_plot = self.build_plot("VAr", "W",
            title=u"Tempo real")
        self.power_scatter = qt.scatter(unicolor=True)
        self.power_plot.addItem(self.power_scatter)

        self.reac_power_data = deque(maxlen=self.POWER_SIZE_LEN)
        self.real_power_data = deque(maxlen=self.POWER_SIZE_LEN)

        self.power_scatter_brushes = qt.mk_brushes(
                            self.POWER_SIZE_LEN, 255, 255, 255)

        self.status_text = qt.text("", anchor=(0.0, 1.0))
        self.status_text.setPos(0, 0)
        self.power_plot.addItem(self.status_text)