Ejemplo n.º 1
0
class MainWindow(QtWidgets.QWidget):
    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)
Ejemplo n.º 2
0
class MainWindow(QtWidgets.QWidget):
    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)