Exemplo n.º 1
0
    def idle(self):
        #idle function called every update cycle
        if CooledDown:
            self.vertAlig.children['col2'].children['wig_actions'].children[
                'vertAlign_actions'].children['btn_showLunarSoil'].style[
                    'background-color'] = "default"
            self.vertAlig.children['col2'].children['wig_actions'].children[
                'vertAlign_actions'].children['btn_harvest'].style[
                    'background-color'] = "default"
        if ripCheckCooledDown:
            self.vertAlig.children['col2'].children['wig_actions'].children[
                'vertAlign_actions'].children['btn_ripCheck'].style[
                    'background-color'] = "default"

        img_wheelStatus.attributes['src'] = gui.load_resource(
            cst._RESOURCE_FOLDER + "wheel.png")
        img_cam.attributes['src'] = gui.load_resource(cst._PICTURE_LOCATION +
                                                      cst._PICTURE_NAME +
                                                      cst._PICTURE_EXTENSION)
        img_temp.attributes['src'] = gui.load_resource(cst._RESOURCE_FOLDER +
                                                       "tempPlots.png")
        img_humidPower.attributes['src'] = gui.load_resource(
            cst._RESOURCE_FOLDER + "humPowerPlots.png")
        img_plantStatus.attributes['src'] = gui.load_resource(
            cst._RESOURCE_FOLDER + "plantState.png")
Exemplo n.º 2
0
 def idle(self):
     #idle function called every update cycle
     img_wheelStatus.attributes['src'] = gui.load_resource(
         cst._RESOURCE_FOLDER + "wheel.png")
     img_cam.attributes['src'] = gui.load_resource(cst._PICTURE_LOCATION +
                                                   cst._PICTURE_NAME +
                                                   cst._PICTURE_EXTENSION)
     img_temp.attributes['src'] = gui.load_resource(cst._RESOURCE_FOLDER +
                                                    "tempPlots.png")
     img_humidPower.attributes['src'] = gui.load_resource(
         cst._RESOURCE_FOLDER + "humPowerPlots.png")
     img_plantStatus.attributes['src'] = gui.load_resource(
         cst._RESOURCE_FOLDER + "plantState.png")
Exemplo n.º 3
0
 def draw(self):
     fig, ax = plt.subplots()
     lbls, sizes = [], []
     for i in data:
         if filt[i[0]] and filt[i[2]]:
             lbls.append(i[0] + ':' + i[2])
             sizes.append(i[1])
     ax.pie(sizes, labels=lbls)
     ax.axis('equal')
     self.fig = fig
     self.ax = ax
     self.plt = plt
     self.canv = FigureCanvasAgg(self.fig)
     plt.savefig('temp.png')
     return gui.load_resource('temp.png')
Exemplo n.º 4
0
 def diag_conf(self, widget):
     fig, ax = plt.subplots()
     lbls, sizes = [], []
     for i in data:
         if filt[i[0]] and filt[i[2]]:
             lbls.append(i[0] + ':' + i[2])
             sizes.append(i[1])
     ax.pie(sizes, labels=lbls)
     ax.axis('equal')
     self.fig = fig
     self.ax = ax
     self.plt = plt
     self.canv = FigureCanvasAgg(self.fig)
     plt.savefig('temp.png')
     self.img = gui.Image(gui.load_resource('temp.png'))
     self.hboxIMG.empty()
     self.hboxIMG.append(self.img)
Exemplo n.º 5
0
 def file_dialog_confirmed(self, widget, fileList):
     if len(fileList)>0:
         self.txtInput.set_value(gui.load_resource(fileList[0]))
         return self.onchange(None, self.txtInput.get_value())