def create_ui(self):
    if (self.mode == 'create'):
        self.setWindowTitle('Choose Repositories to Watch')
    else:
        self.setWindowTitle('Editing Watch Folders')
    self.resize(600, 420)
    self.setSizeGripEnabled(True)
    self.creat_layout()
    self.create_repo_path_line_edit()
    self.create_repo_combo_box()
    self.create_repos_tree_widget()
    self.create_buttons()
    if (self.mode == 'edit'):
        self.fill_repo_combo_box(self.exclude_repo_list)
        self.fill_repo_tree_widget(self.exclude_repo_list)
    else:
        self.fill_repo_combo_box()
        self.fill_repo_tree_widget()
    self.check_save_ability()
    self.controls_actions()
def create_ui(self):
    if (self.mode == 'create'):
        self.setWindowTitle('Choose Repositories to Watch')
    else:
        self.setWindowTitle('Editing Watch Folders')
    self.resize(600, 420)
    self.setSizeGripEnabled(True)
    self.creat_layout()
    self.create_repo_path_line_edit()
    self.create_repo_combo_box()
    self.create_repos_tree_widget()
    self.create_buttons()
    if (self.mode == 'edit'):
        self.fill_repo_combo_box(self.exclude_repo_list)
        self.fill_repo_tree_widget(self.exclude_repo_list)
    else:
        self.fill_repo_combo_box()
        self.fill_repo_tree_widget()
    self.check_save_ability()
    self.controls_actions()