Beispiel #1
0
class MainScreen(BoxLayout):
    def __init__(self, **kwargs):
        super().__init__(**kwargs)
        self.popup = Open_Popup(self.open_callback)

    def open_txt(self):
        self.popup.open()

    def open_callback(self, file):
        print(file)

    def plot(self):
        for i in range(len(self.ids.plot1.axes.lines)):
            self.ids.plot1.axes.lines[i].remove()
        numb = random.randint(10, size=1)[0]
        self.ids.plot1.axes.plot([0, 1, 2], [0, 1, numb])
        self.ids.plot1.wid.draw()
Beispiel #2
0
 def __init__(self, **kwargs):
     super().__init__(**kwargs)
     self.popup = Open_Popup(self.open_callback)