def setupUI(self):
labelSizePolicy = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed)<EOL>labelSizePolicy.setHorizontalStretch(<NUM_LIT:0>)<EOL>labelSizePolicy.setVerticalStretch(<NUM_LIT:0>)<EOL>menuSizePolicy = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Fixed)<EOL>menuSizePolicy.setHorizontalStretch(<NUM_LIT:0>)<EOL>menuSizePolicy.setVerticalStretch(<NUM_LIT:0>)<EOL>logTypeLayout = QHBoxLayout()<EOL>logTypeLayout.setSpacing(<NUM_LIT:0>)<EOL>typeLabel = QLabel("<STR_LIT>")<EOL>typeLabel.setMinimumSize(QSize(<NUM_LIT>, <NUM_LIT:0>))<EOL>typeLabel.setMaximumSize(QSize(<NUM_LIT>, <NUM_LIT>))<EOL>typeLabel.setSizePolicy(labelSizePolicy)<EOL>logTypeLayout.addWidget(typeLabel)<EOL>self.logType = QComboBox(self)<EOL>self.logType.setMinimumSize(QSize(<NUM_LIT:100>, <NUM_LIT:0>))<EOL>self.logType.setMaximumSize(QSize(<NUM_LIT>, <NUM_LIT>))<EOL>menuSizePolicy.setHeightForWidth(self.logType.sizePolicy().hasHeightForWidth())<EOL>self.logType.setSizePolicy(menuSizePolicy)<EOL>logTypeLayout.addWidget(self.logType)<EOL>logTypeLayout.setStretch(<NUM_LIT:1>, <NUM_LIT:6>)<EOL>programLayout = QHBoxLayout()<EOL>programLayout.setSpacing(<NUM_LIT:0>)<EOL>programLabel = QLabel("<STR_LIT>")<EOL>programLabel.setMinimumSize(QSize(<NUM_LIT>, <NUM_LIT:0>))<EOL>programLabel.setMaximumSize(QSize(<NUM_LIT>, <NUM_LIT>))<EOL>programLabel.setSizePolicy(labelSizePolicy)<EOL>programLayout.addWidget(programLabel)<EOL>self.programName = QComboBox(self)<EOL>self.programName.setMinimumSize(QSize(<NUM_LIT:100>, <NUM_LIT:0>))<EOL>self.programName.setMaximumSize(QSize(<NUM_LIT>, <NUM_LIT>))<EOL>menuSizePolicy.setHeightForWidth(self.programName.sizePolicy().hasHeightForWidth())<EOL>self.programName.setSizePolicy(menuSizePolicy)<EOL>programLayout.addWidget(self.programName)<EOL>programLayout.setStretch(<NUM_LIT:1>, <NUM_LIT:6>)<EOL>if self.initialInstance:<EOL><INDENT>self.logButton = QPushButton("<STR_LIT:+>", self)<EOL>self.logButton.setToolTip("<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>self.logButton = QPushButton("<STR_LIT:->")<EOL>self.logButton.setToolTip("<STR_LIT>")<EOL><DEDENT>self.logButton.setMinimumSize(QSize(<NUM_LIT:16>, <NUM_LIT:16>))  <EOL>self.logButton.setMaximumSize(QSize(<NUM_LIT:16>, <NUM_LIT:16>))  <EOL>self.logButton.setObjectName("<STR_LIT>")<EOL>self.logButton.setStyleSheet("<STR_LIT>")<EOL>self._logSelectLayout = QHBoxLayout()<EOL>self._logSelectLayout.setSpacing(<NUM_LIT:6>)<EOL>self._logSelectLayout.addLayout(logTypeLayout)<EOL>self._logSelectLayout.addLayout(programLayout)<EOL>self._logSelectLayout.addWidget(self.logButton)<EOL>self._logSelectLayout.setStretch(<NUM_LIT:0>, <NUM_LIT:6>)<EOL>self._logSelectLayout.setStretch(<NUM_LIT:1>, <NUM_LIT:6>)<EOL>
Create graphical objects for menus.