def METHOD_NAME(self):
    self.url_label = QtWidgets.QLabel("Shotgrid server:")
    self.login_label = QtWidgets.QLabel("Login:")
    self.password_label = QtWidgets.QLabel("Password:")
    self.url_input = QtWidgets.QComboBox()
    # self.url_input.setReadOnly(True)
    self.login_input = QtWidgets.QLineEdit()
    self.login_input.setPlaceholderText("login")
    self.password_input = QtWidgets.QLineEdit()
    self.password_input.setPlaceholderText("password")
    self.password_input.setEchoMode(QtWidgets.QLineEdit.Password)
    self.error_label = QtWidgets.QLabel("")
    self.error_label.setStyleSheet("color: red;")
    self.error_label.setWordWrap(True)
    self.error_label.hide()
    self.input_layout = QtWidgets.QFormLayout()
    self.input_layout.setContentsMargins(10, 15, 10, 5)
    self.input_layout.addRow(self.url_label, self.url_input)
    self.input_layout.addRow(self.login_label, self.login_input)
    self.input_layout.addRow(self.password_label, self.password_input)
    self.input_layout.addRow(self.error_label)
    self.login_button = QtWidgets.QPushButton("Login")
    self.login_button.setToolTip("Log in shotgrid instance")
    self.login_button.clicked.connect(self._on_shotgrid_login_clicked)
    self.logout_button = QtWidgets.QPushButton("Logout")
    self.logout_button.setToolTip("Log out shotgrid instance")
    self.logout_button.clicked.connect(self._on_shotgrid_logout_clicked)
    self.buttons_layout = QtWidgets.QHBoxLayout()
    self.buttons_layout.addWidget(self.logout_button)
    self.buttons_layout.addWidget(self.login_button)
    self.main_widget = QtWidgets.QVBoxLayout(self)
    self.main_widget.addLayout(self.input_layout)
    self.main_widget.addLayout(self.buttons_layout)
    self.setLayout(self.main_widget)