def ui(self):
    "\n            Define UI's elements\n        "
    self.setGeometry(self.left, self.top, self.width, self.height)
    layout = QVBoxLayout()
    label = QLabel(self)
    label.setObjectName('PopupLabel')
    label.setText(self.label_msg)
    self.textbox = QLineEdit(self)
    alpha_label = QLabel(self)
    alpha_label.setObjectName('PopupLabel')
    alpha_label.setText('Alpha')
    self.alpha_textbox = QLineEdit(self)
    self.alpha_textbox.setText(str(1.0))
    color_label = QLabel(self)
    color_label.setObjectName('PopupLabel')
    color_label.setText('Color')
    self.color_textbox = QLineEdit(self)
    self.color_textbox.setText('atlas')
    self.button = QPushButton('Add regions', self)
    self.button.clicked.connect(self.on_click)
    self.button.setObjectName('RegionsButton')
    layout.addWidget(label)
    layout.addWidget(self.textbox)
    layout.addWidget(alpha_label)
    layout.addWidget(self.alpha_textbox)
    layout.addWidget(color_label)
    layout.addWidget(self.color_textbox)
    layout.addWidget(self.button)
    self.setLayout(layout)
    self.show()
Define UI's elements
def ui(self):
    "\n            \n        "
    self.setGeometry(self.left, self.top, self.width, self.height)
    layout = QVBoxLayout()
    label = QLabel(self)
    label.setObjectName('PopupLabel')
    label.setText(self.label_msg)
    self.textbox = QLineEdit(self)
    alpha_label = QLabel(self)
    alpha_label.setObjectName('PopupLabel')
    alpha_label.setText('Alpha')
    self.alpha_textbox = QLineEdit(self)
    self.alpha_textbox.setText(str(1.0))
    color_label = QLabel(self)
    color_label.setObjectName('PopupLabel')
    color_label.setText('Color')
    self.color_textbox = QLineEdit(self)
    self.color_textbox.setText('atlas')
    self.button = QPushButton('Add regions', self)
    self.button.clicked.connect(self.on_click)
    self.button.setObjectName('RegionsButton')
    layout.addWidget(label)
    layout.addWidget(self.textbox)
    layout.addWidget(alpha_label)
    layout.addWidget(self.alpha_textbox)
    layout.addWidget(color_label)
    layout.addWidget(self.color_textbox)
    layout.addWidget(self.button)
    self.setLayout(layout)
    self.show()