def __init__(self, parent=None): super(CameraInfo, self).__init__(parent) self.ccd = CCDInfo(self) self.fan = FanStatus(self) self.temp = TempMonitor(self) # self.temp = None self.setLayout(set_wvbox(self.ccd, self.fan, self.temp)) self.setStyleSheet("background-color: rgb(50, 50, 50); border-radius: 10px; color: white;")
def __init__(self, parent=None): super(CameraInfo, self).__init__(parent) self.ccd = CCDInfo(self) self.fan = FanStatus(self) self.temp = TempMonitor(self) # self.temp = None self.setLayout(set_wvbox(self.temp, self.fan, self.ccd)) self.setStyleSheet("background-color: rgb(50, 50, 50); border-radius: 10px; color: white;")
def __init__(self, parent=None): super(Clock, self).__init__(parent) self.title = QtWidgets.QLabel('Universal Time Coordinated', self) self.lcd = QtWidgets.QLabel(self) self.sc = SchedClock(lcd_display=self.lcd) self.init_ui() self.config_widgets() self.setLayout(set_wvbox(self.title, self.lcd)) self.setStyleSheet("background-color: rgb(50, 50, 50); border-radius: 10px; color: white;")
def __init__(self, parent=None): super(Clock, self).__init__(parent) self.title = QtWidgets.QLabel('Universal Time Coordinated', self) self.lcd = QtWidgets.QLabel(self) self.sc = SchedClock(lcd_display=self.lcd) self.init_ui() self.config_widgets() self.setLayout(set_wvbox(self.title, self.lcd)) self.setStyleSheet( "background-color: rgb(50, 50, 50); border-radius: 10px; color: white;" )
def __init__(self, parent=None): super(MainWindow, self).__init__(parent) # Init the Layouts self.MainHBox = QtWidgets.QHBoxLayout() # Main Box self.VBox = QtWidgets.QVBoxLayout() # Vertical Box in the Left Box self.all_h_boxes = [] self.console = ConsoleThreadOutput() self.console.set_widget_console(ConsoleLogWidget(self)) self.MainHBox.addLayout(self.VBox) self.MainHBox.addStretch(1) self.MainHBox.addLayout(set_wvbox(self.console.get_widget_console(), Shooter(self))) add_all_to_vbox(self.VBox, Clock(self), ConfigsInfo(self), CameraInfo(self)) self.VBox.addStretch(1) self.setLayout(self.MainHBox)
def __init__(self, parent=None): super(MainWindow, self).__init__(parent) # Init the Layouts self.MainHBox = QtWidgets.QHBoxLayout() # Main Box self.VBox = QtWidgets.QVBoxLayout() # Vertical Box in the Left Box self.all_h_boxes = [] self.console = ConsoleThreadOutput() self.console.set_widget_console(ConsoleLogWidget(self)) self.MainHBox.addLayout(self.VBox) self.MainHBox.addStretch(1) self.MainHBox.addLayout(set_wvbox(self.console.get_widget_console(), Shooter(self))) add_all_to_vbox(self.VBox, Clock(self), ConfigsInfo(self), StartEndEphem(self), CameraInfo(self)) self.VBox.addStretch(1) self.setLayout(self.MainHBox)
def set_layout(self): self.setLayout(set_wvbox(self.site, self.moon))