def __init__(self, *args, **kwargs):
     super().__init__()
     self.ls = []
     self.__dict__.update(kwargs)
     self.editingFinished.connect(self.onTextChanged)
     self.colour = Parameters().colour
     self.applyStyle(self.colour)
    def __init__(self, *args, **kwargs):
        super().__init__()

        #Styling
        self.colour = Parameters().colour
        self.setMinimum(0)
        self.setMaximum(86400)
        self.applyStyle(self.colour)
 def __init__(self, *args, **kwargs):
     super().__init__()
     self.ls = []
     self.__dict__.update(kwargs)
     self.lastSelected = "None"
     self.activated[str].connect(self.onActivated)
     #Styling
     self.colour = Parameters().colour
     self.applyStyle(self.colour)
    def __init__(self, *args, **kwargs):
        super().__init__()
        self.colour = Parameters().colour

        self.sub = QMainWindow()
        self.layout = QVBoxLayout()
        self.sub.setWindowFlags(Qt.Widget)
        # self.sub.setDockOptions(Parameters()._DOCK_OPTS)
        self.setWidget(self.sub)
        label = QLabel(args[0])
        label.setAlignment(Qt.AlignCenter)
        stylesheet = """ 
                    QLabel {color : %s;
                            font-weight: bold;
                            background: %s}""" % (
            'white', colourPick(self.colour, 'medium'))
        label.setStyleSheet(stylesheet)
        self.setTitleBarWidget(label)

        #Styling
        self.applyStyle(self.colour)
Exemple #5
0
                # print('writing data --> {}'.format(readings))
                self.parameters.probes[probe]['databaseClass'].appendRow(
                    readings)

    def outputDataTest(self):
        print('writing data')
        while True:
            for probe in self.parameters.probes.keys():
                readings = []
                for protocol in self.parameters.probes[probe]['protocol']:
                    if protocol == 'test':
                        if probe == 'temperature':
                            readings += [random.randint(30, 55)]
                        elif probe == 'ph':
                            readings += [random.randint(5, 7)]
                # print('writing data --> {}'.format(readings))
                self.parameters.probes[probe]['databaseClass'].appendRow(
                    readings)
            sleep(5)


#    def initialiseGUI(self):
#        b = mainGUI(self.parameters)

if __name__ == '__main__':
    parameters = Parameters()
    parameters.initialise()
    a = intialiseBrewery(parameters)

#    b = mainGUI(parameters)
    def __init__(self, *args, **kwargs):
        QCheckBox.__init__(self, *args, **kwargs)

        #Styling
        self.colour = Parameters().colour
        self.applyStyle(self.colour)
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)

        #Styling
        self.colour = Parameters().colour
        self.applyStyle(self.colour)