Ext Apps: Hooks install and Batch Modules Collections – obsolete

Author: Stefan
Version: Alpha 0

Deprecated.

Mac only (not even tested on Linux)
You need to have PySide2 or PyQt5 installed to run the app.

This is only a GUI, no actions attached.
The layout is created in QT Creator, then converted to python and tweaked a tiny bit.
Although it’s not doing anything yet, I thought this step was worth sharing, as an example of a generic QT GUI app structure.

I’ll try to follow up soon with some functionalities, somewhere around hooks installation, batch setup collections and config/prefs utilities.

Cheers,
Stefan

flamepy_config_ui_01d

Code:


# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'self.ui'
#
# Created by: PyQt5 UI code generator 5.8.1
#
# WARNING! All changes made in this file will be lost!

# from PyQt5 import QtCore, QtGui, QtWidgets
from PySide2 import QtCore, QtGui, QtWidgets

class Ui_MainWindow(QtWidgets.QMainWindow):

def __init__(self, parent=None):
super(Ui_MainWindow, self).__init__(parent)

self.setObjectName("MainWindow")
self.resize(800, 550)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.sizePolicy().hasHeightForWidth())
self.setSizePolicy(sizePolicy)
self.setMinimumSize(QtCore.QSize(700, 550))
self.setMaximumSize(QtCore.QSize(2000, 700))

self.centralWidget = QtWidgets.QWidget(self)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.centralWidget.sizePolicy().hasHeightForWidth())
self.centralWidget.setSizePolicy(sizePolicy)
self.centralWidget.setMaximumSize(QtCore.QSize(1200, 800))
self.centralWidget.setObjectName("centralWidget")

self.GrLayout_central_widget = QtWidgets.QGridLayout(self.centralWidget)
self.GrLayout_central_widget.setContentsMargins(11, 11, 11, 11)
self.GrLayout_central_widget.setSpacing(6)
self.GrLayout_central_widget.setObjectName("GrLayout_central_widget")

self.MainLayout_V = QtWidgets.QVBoxLayout()
self.MainLayout_V.setContentsMargins(11, 11, 11, 11)
self.MainLayout_V.setSpacing(6)
self.MainLayout_V.setObjectName("MainLayout_V")
self.tabWidget = QtWidgets.QTabWidget(self.centralWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.tabWidget.sizePolicy().hasHeightForWidth())
self.tabWidget.setSizePolicy(sizePolicy)
self.tabWidget.setObjectName("tabWidget")
self.tab_hooks = QtWidgets.QWidget()
self.tab_hooks.setLayoutDirection(QtCore.Qt.LeftToRight)
self.tab_hooks.setAutoFillBackground(False)
self.tab_hooks.setObjectName("tab_hooks")
self.HLayout_tab_hooks = QtWidgets.QHBoxLayout(self.tab_hooks)
self.HLayout_tab_hooks.setContentsMargins(11, 11, 11, 11)
self.HLayout_tab_hooks.setSpacing(6)
self.HLayout_tab_hooks.setObjectName("HLayout_tab_hooks")
self.VLayout_hooks = QtWidgets.QVBoxLayout()
self.VLayout_hooks.setContentsMargins(11, 11, 11, 11)
self.VLayout_hooks.setSpacing(6)
self.VLayout_hooks.setObjectName("VLayout_hooks")
self.groupBox_hooks_config = QtWidgets.QGroupBox(self.tab_hooks)
self.groupBox_hooks_config.setObjectName("groupBox_hooks_config")
self.GrBox_VLayout_hooks_config = QtWidgets.QVBoxLayout(self.groupBox_hooks_config)
self.GrBox_VLayout_hooks_config.setContentsMargins(11, 11, 11, 11)
self.GrBox_VLayout_hooks_config.setSpacing(6)
self.GrBox_VLayout_hooks_config.setObjectName("GrBox_VLayout_hooks_config")
self.VLayout_hooks_config = QtWidgets.QVBoxLayout()
self.VLayout_hooks_config.setContentsMargins(11, 11, 11, 11)
self.VLayout_hooks_config.setSpacing(6)
self.VLayout_hooks_config.setObjectName("VLayout_hooks_config")
self.HLayout_pickpath = QtWidgets.QHBoxLayout()
self.HLayout_pickpath.setContentsMargins(11, 11, 11, 11)
self.HLayout_pickpath.setSpacing(6)
self.HLayout_pickpath.setObjectName("HLayout_pickpath")

self.Btn_pick_path = QtWidgets.QPushButton(self.groupBox_hooks_config)
self.Btn_pick_path.setObjectName("Btn_pick_path")
self.Btn_pick_path.setFixedSize(100, 32)
self.HLayout_pickpath.addWidget(self.Btn_pick_path)

self.Line_hooks_path = QtWidgets.QLineEdit(self.groupBox_hooks_config)
self.Line_hooks_path.setObjectName("Line_hooks_path")
self.Line_hooks_path.setFixedHeight(32)
self.HLayout_pickpath.addWidget(self.Line_hooks_path)
self.VLayout_hooks_config.addLayout(self.HLayout_pickpath)
self.HLayout_add2env = QtWidgets.QHBoxLayout()
self.HLayout_add2env.setContentsMargins(11, 11, 11, 11)
self.HLayout_add2env.setSpacing(6)
self.HLayout_add2env.setObjectName("HLayout_add2env")

self.label_path2env = QtWidgets.QLabel(self.groupBox_hooks_config)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_path2env.sizePolicy().hasHeightForWidth())
self.label_path2env.setSizePolicy(sizePolicy)
self.label_path2env.setFixedHeight(32)
self.label_path2env.setObjectName("label_path2env")
self.HLayout_add2env.addWidget(self.label_path2env)

spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.HLayout_add2env.addItem(spacerItem)

self.btn_add2env = QtWidgets.QPushButton(self.groupBox_hooks_config)
self.btn_add2env.setObjectName("btn_add2env")
self.btn_add2env.setFixedHeight(32)
self.HLayout_add2env.addWidget(self.btn_add2env)

self.VLayout_hooks_config.addLayout(self.HLayout_add2env)
self.GrBox_VLayout_hooks_config.addLayout(self.VLayout_hooks_config)
self.VLayout_hooks.addWidget(self.groupBox_hooks_config)

self.groupBox_Hooks_list = QtWidgets.QGroupBox(self.tab_hooks)
self.groupBox_Hooks_list.setObjectName("groupBox_Hooks_list")
self.HLayout_Hooks_list = QtWidgets.QHBoxLayout(self.groupBox_Hooks_list)
self.HLayout_Hooks_list.setContentsMargins(11, 11, 11, 11)
self.HLayout_Hooks_list.setSpacing(6)
self.HLayout_Hooks_list.setObjectName("HLayout_Hooks_list")
self.VLayout_hooks_list = QtWidgets.QVBoxLayout()
self.VLayout_hooks_list.setContentsMargins(11, 11, 11, 11)
self.VLayout_hooks_list.setSpacing(6)
self.VLayout_hooks_list.setObjectName("VLayout_hooks_list")
self.HLayout_hooks_list = QtWidgets.QHBoxLayout()
self.HLayout_hooks_list.setContentsMargins(11, 11, 11, 11)
self.HLayout_hooks_list.setSpacing(6)
self.HLayout_hooks_list.setObjectName("HLayout_hooks_list")

self.VLayout_hooks_btns = QtWidgets.QVBoxLayout()
self.VLayout_hooks_btns.setContentsMargins(11, 11, 11, 11)
self.VLayout_hooks_btns.setSpacing(6)
self.VLayout_hooks_btns.setObjectName("VLayout_hooks_btns")

self.btn_add_hook = QtWidgets.QPushButton(self.groupBox_Hooks_list)
self.btn_add_hook.setObjectName("btn_add_hook")
self.btn_add_hook.setFixedHeight(32)
self.VLayout_hooks_btns.addWidget(self.btn_add_hook)

self.btn_del_hook = QtWidgets.QPushButton(self.groupBox_Hooks_list)
self.btn_del_hook.setObjectName("btn_del_hook")
self.VLayout_hooks_btns.addWidget(self.btn_del_hook)

spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.VLayout_hooks_btns.addItem(spacerItem1)
self.HLayout_hooks_list.addLayout(self.VLayout_hooks_btns)

self.text_hooks_list = QtWidgets.QTextEdit(self.groupBox_Hooks_list)
self.text_hooks_list.setObjectName("text_hooks_list")
self.HLayout_hooks_list.addWidget(self.text_hooks_list)

spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.HLayout_hooks_list.addItem(spacerItem2)
self.VLayout_hooks_list.addLayout(self.HLayout_hooks_list)
spacerItem3 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.VLayout_hooks_list.addItem(spacerItem3)
self.HLayout_Hooks_list.addLayout(self.VLayout_hooks_list)
self.VLayout_hooks.addWidget(self.groupBox_Hooks_list)
self.HLayout_tab_hooks.addLayout(self.VLayout_hooks)
self.tabWidget.addTab(self.tab_hooks, "")

self.tab_collection = QtWidgets.QWidget()
self.tab_collection.setObjectName("tab_collection")
self.HLayout_tab_collection = QtWidgets.QHBoxLayout(self.tab_collection)
self.HLayout_tab_collection.setContentsMargins(11, 11, 11, 11)
self.HLayout_tab_collection.setSpacing(6)
self.HLayout_tab_collection.setObjectName("HLayout_tab_collection")

self.HLayout_batch_collect = QtWidgets.QHBoxLayout()
self.HLayout_batch_collect.setContentsMargins(11, 11, 11, 11)
self.HLayout_batch_collect.setSpacing(6)
self.HLayout_batch_collect.setObjectName("HLayout_batch_collect")
self.VLayout1_batch_collect = QtWidgets.QVBoxLayout()
self.VLayout1_batch_collect.setContentsMargins(11, 11, 11, 11)
self.VLayout1_batch_collect.setSpacing(6)
self.VLayout1_batch_collect.setObjectName("VLayout1_batch_collect")

self.label_collect_paths = QtWidgets.QLabel(self.tab_collection)
self.label_collect_paths.setObjectName("label_collect_paths")
self.VLayout1_batch_collect.addWidget(self.label_collect_paths, 0, QtCore.Qt.AlignHCenter)

self.list_collect_paths = QtWidgets.QListView(self.tab_collection)
self.list_collect_paths.setObjectName("list_collect_paths")
self.VLayout1_batch_collect.addWidget(self.list_collect_paths)

self.HLayout_paths_btns = QtWidgets.QHBoxLayout()
self.HLayout_paths_btns.setContentsMargins(11, 11, 11, 11)
self.HLayout_paths_btns.setSpacing(6)
self.HLayout_paths_btns.setObjectName("HLayout_paths_btns")

self.btn_collect_add = QtWidgets.QPushButton(self.tab_collection)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.btn_collect_add.sizePolicy().hasHeightForWidth())
self.btn_collect_add.setSizePolicy(sizePolicy)
self.btn_collect_add.setObjectName("btn_collect_add")
self.HLayout_paths_btns.addWidget(self.btn_collect_add)

self.btn_collect_del = QtWidgets.QPushButton(self.tab_collection)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.btn_collect_del.sizePolicy().hasHeightForWidth())
self.btn_collect_del.setSizePolicy(sizePolicy)
self.btn_collect_del.setObjectName("btn_collect_del")
self.HLayout_paths_btns.addWidget(self.btn_collect_del)

self.btn_collect_list_all = QtWidgets.QPushButton(self.tab_collection)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.btn_collect_list_all.sizePolicy().hasHeightForWidth())
self.btn_collect_list_all.setSizePolicy(sizePolicy)
self.btn_collect_list_all.setObjectName("btn_collect_list_all")
self.HLayout_paths_btns.addWidget(self.btn_collect_list_all)

self.VLayout1_batch_collect.addLayout(self.HLayout_paths_btns)
spacerItem4 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.VLayout1_batch_collect.addItem(spacerItem4)
self.HLayout_batch_collect.addLayout(self.VLayout1_batch_collect)
self.VLayout2_batch_collect = QtWidgets.QVBoxLayout()
self.VLayout2_batch_collect.setContentsMargins(11, 11, 11, 11)
self.VLayout2_batch_collect.setSpacing(6)
self.VLayout2_batch_collect.setObjectName("VLayout2_batch_collect")

self.label_collect_setups = QtWidgets.QLabel(self.tab_collection)
self.label_collect_setups.setObjectName("label_collect_setups")
self.VLayout2_batch_collect.addWidget(self.label_collect_setups, 0, QtCore.Qt.AlignHCenter)

self.tree_collect_setups = QtWidgets.QTreeView(self.tab_collection)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(2)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.tree_collect_setups.sizePolicy().hasHeightForWidth())
self.tree_collect_setups.setSizePolicy(sizePolicy)
self.tree_collect_setups.setObjectName("tree_collect_setups")
self.VLayout2_batch_collect.addWidget(self.tree_collect_setups)

self.HLayout_batch_collect.addLayout(self.VLayout2_batch_collect)
self.HLayout_batch_collect.setStretch(0, 1)
self.HLayout_tab_collection.addLayout(self.HLayout_batch_collect)
self.tabWidget.addTab(self.tab_collection, "")
self.tab_prefs = QtWidgets.QWidget()
self.tab_prefs.setObjectName("tab_prefs")
self.HLayout_tab_prefs = QtWidgets.QHBoxLayout(self.tab_prefs)
self.HLayout_tab_prefs.setContentsMargins(11, 11, 11, 11)
self.HLayout_tab_prefs.setSpacing(6)
self.HLayout_tab_prefs.setObjectName("HLayout_tab_prefs")
self.groupBox_pref_left = QtWidgets.QGroupBox(self.tab_prefs)
self.groupBox_pref_left.setObjectName("groupBox_pref_left")
self.VLayout_GrBox_pref_left = QtWidgets.QVBoxLayout(self.groupBox_pref_left)
self.VLayout_GrBox_pref_left.setContentsMargins(11, 11, 11, 11)
self.VLayout_GrBox_pref_left.setSpacing(6)
self.VLayout_GrBox_pref_left.setObjectName("VLayout_GrBox_pref_left")
self.VLayout_combos_prefs = QtWidgets.QVBoxLayout()
self.VLayout_combos_prefs.setContentsMargins(11, 11, 11, 11)
self.VLayout_combos_prefs.setSpacing(6)
self.VLayout_combos_prefs.setObjectName("VLayout_combos_prefs")
self.HLayout_combo_pref1 = QtWidgets.QHBoxLayout()
self.HLayout_combo_pref1.setContentsMargins(11, 11, 11, 11)
self.HLayout_combo_pref1.setSpacing(6)
self.HLayout_combo_pref1.setObjectName("HLayout_combo_pref1")

self.label_pref_menu = QtWidgets.QLabel(self.groupBox_pref_left)
self.label_pref_menu.setObjectName("label_pref_menu")
self.HLayout_combo_pref1.addWidget(self.label_pref_menu)

self.combo_pref_menu = QtWidgets.QComboBox(self.groupBox_pref_left)
self.combo_pref_menu.setObjectName("combo_pref_menu")
self.combo_pref_menu.addItem("")
self.combo_pref_menu.addItem("")
self.HLayout_combo_pref1.addWidget(self.combo_pref_menu)
self.VLayout_combos_prefs.addLayout(self.HLayout_combo_pref1)
self.HLayout_combo_pref2 = QtWidgets.QHBoxLayout()
self.HLayout_combo_pref2.setContentsMargins(11, 11, 11, 11)
self.HLayout_combo_pref2.setSpacing(6)
self.HLayout_combo_pref2.setObjectName("HLayout_combo_pref2")

self.label_pref_browser = QtWidgets.QLabel(self.groupBox_pref_left)
self.label_pref_browser.setObjectName("label_pref_browser")
self.HLayout_combo_pref2.addWidget(self.label_pref_browser)

self.combo_pref_browser = QtWidgets.QComboBox(self.groupBox_pref_left)
self.combo_pref_browser.setObjectName("combo_pref_browser")
self.combo_pref_browser.addItem("")
self.combo_pref_browser.addItem("")

self.HLayout_combo_pref2.addWidget(self.combo_pref_browser)
self.VLayout_combos_prefs.addLayout(self.HLayout_combo_pref2)
self.HLayout_combo_pref3 = QtWidgets.QHBoxLayout()
self.HLayout_combo_pref3.setContentsMargins(11, 11, 11, 11)
self.HLayout_combo_pref3.setSpacing(6)
self.HLayout_combo_pref3.setObjectName("HLayout_combo_pref3")

self.label_fav_color = QtWidgets.QLabel(self.groupBox_pref_left)
self.label_fav_color.setObjectName("label_fav_color")
self.HLayout_combo_pref3.addWidget(self.label_fav_color)

self.combo_fav_color = QtWidgets.QComboBox(self.groupBox_pref_left)
self.combo_fav_color.setObjectName("combo_fav_color")
self.combo_fav_color.addItem("")
self.combo_fav_color.addItem("")
self.combo_fav_color.addItem("")
self.combo_fav_color.addItem("")
self.combo_fav_color.addItem("")
self.combo_fav_color.addItem("")
self.combo_fav_color.addItem("")
self.HLayout_combo_pref3.addWidget(self.combo_fav_color)

self.VLayout_combos_prefs.addLayout(self.HLayout_combo_pref3)
self.HLayout_combo_pref4 = QtWidgets.QHBoxLayout()
self.HLayout_combo_pref4.setContentsMargins(11, 11, 11, 11)
self.HLayout_combo_pref4.setSpacing(6)
self.HLayout_combo_pref4.setObjectName("HLayout_combo_pref4")

self.label_fav_meal = QtWidgets.QLabel(self.groupBox_pref_left)
self.label_fav_meal.setObjectName("label_fav_meal")
self.HLayout_combo_pref4.addWidget(self.label_fav_meal)

self.combo_fav_meal = QtWidgets.QComboBox(self.groupBox_pref_left)
self.combo_fav_meal.setObjectName("combo_fav_meal")
self.combo_fav_meal.addItem("")
self.combo_fav_meal.addItem("")
self.combo_fav_meal.addItem("")
self.combo_fav_meal.addItem("")
self.combo_fav_meal.addItem("")
self.combo_fav_meal.addItem("")
self.HLayout_combo_pref4.addWidget(self.combo_fav_meal)

self.VLayout_combos_prefs.addLayout(self.HLayout_combo_pref4)
self.VLayout_GrBox_pref_left.addLayout(self.VLayout_combos_prefs)
spacerItem5 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.VLayout_GrBox_pref_left.addItem(spacerItem5)
self.HLayout_tab_prefs.addWidget(self.groupBox_pref_left)
self.groupBox_prefs_Right = QtWidgets.QGroupBox(self.tab_prefs)
self.groupBox_prefs_Right.setObjectName("groupBox_prefs_Right")
self.VLayout_GrBox_pref_right = QtWidgets.QVBoxLayout(self.groupBox_prefs_Right)
self.VLayout_GrBox_pref_right.setContentsMargins(11, 11, 11, 11)
self.VLayout_GrBox_pref_right.setSpacing(6)
self.VLayout_GrBox_pref_right.setObjectName("VLayout_GrBox_pref_right")
self.VLayout_checkboxes = QtWidgets.QVBoxLayout()
self.VLayout_checkboxes.setContentsMargins(11, 11, 11, 11)
self.VLayout_checkboxes.setSpacing(6)
self.VLayout_checkboxes.setObjectName("VLayout_checkboxes")
self.HLayout_checkbox1 = QtWidgets.QHBoxLayout()
self.HLayout_checkbox1.setContentsMargins(11, 11, 11, 11)
self.HLayout_checkbox1.setSpacing(6)
self.HLayout_checkbox1.setObjectName("HLayout_checkbox1")
self.check_close_all = QtWidgets.QCheckBox(self.groupBox_prefs_Right)
self.check_close_all.setObjectName("check_close_all")
self.HLayout_checkbox1.addWidget(self.check_close_all)
self.VLayout_checkboxes.addLayout(self.HLayout_checkbox1)
self.HLayout_checkbox2 = QtWidgets.QHBoxLayout()
self.HLayout_checkbox2.setContentsMargins(11, 11, 11, 11)
self.HLayout_checkbox2.setSpacing(6)
self.HLayout_checkbox2.setObjectName("HLayout_checkbox2")
self.check_hungry = QtWidgets.QCheckBox(self.groupBox_prefs_Right)
self.check_hungry.setObjectName("check_hungry")
self.HLayout_checkbox2.addWidget(self.check_hungry)
self.VLayout_checkboxes.addLayout(self.HLayout_checkbox2)
self.HLayout_checkbox3 = QtWidgets.QHBoxLayout()
self.HLayout_checkbox3.setContentsMargins(11, 11, 11, 11)
self.HLayout_checkbox3.setSpacing(6)
self.HLayout_checkbox3.setObjectName("HLayout_checkbox3")
self.check_all_good = QtWidgets.QCheckBox(self.groupBox_prefs_Right)
self.check_all_good.setObjectName("check_all_good")
self.HLayout_checkbox3.addWidget(self.check_all_good)
self.VLayout_checkboxes.addLayout(self.HLayout_checkbox3)
self.HLayout_checkbox4 = QtWidgets.QHBoxLayout()
self.HLayout_checkbox4.setContentsMargins(11, 11, 11, 11)
self.HLayout_checkbox4.setSpacing(6)
self.HLayout_checkbox4.setObjectName("HLayout_checkbox4")
self.check_whatever = QtWidgets.QCheckBox(self.groupBox_prefs_Right)
self.check_whatever.setObjectName("check_whatever")
self.HLayout_checkbox4.addWidget(self.check_whatever)
self.VLayout_checkboxes.addLayout(self.HLayout_checkbox4)
self.VLayout_GrBox_pref_right.addLayout(self.VLayout_checkboxes)
spacerItem6 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.VLayout_GrBox_pref_right.addItem(spacerItem6)
self.HLayout_tab_prefs.addWidget(self.groupBox_prefs_Right)
self.HLayout_tab_prefs.setStretch(0, 1)
self.tabWidget.addTab(self.tab_prefs, "")
self.MainLayout_V.addWidget(self.tabWidget)
self.HLayout_bottom = QtWidgets.QHBoxLayout()
self.HLayout_bottom.setContentsMargins(11, 11, 11, 11)
self.HLayout_bottom.setSpacing(6)
self.HLayout_bottom.setObjectName("HLayout_bottom")
spacerItem7 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.HLayout_bottom.addItem(spacerItem7)

self.btn_reload = QtWidgets.QPushButton(self.centralWidget)
self.btn_reload.setObjectName("btn_reload")
self.HLayout_bottom.addWidget(self.btn_reload)

self.btn_save = QtWidgets.QPushButton(self.centralWidget)
self.btn_save.setObjectName("btn_save")
self.HLayout_bottom.addWidget(self.btn_save)

self.MainLayout_V.addLayout(self.HLayout_bottom)
self.GrLayout_central_widget.addLayout(self.MainLayout_V, 0, 0, 1, 1)
self.setCentralWidget(self.centralWidget)
self.menuBar = QtWidgets.QMenuBar(self)
self.menuBar.setGeometry(QtCore.QRect(0, 0, 700, 22))
self.menuBar.setObjectName("menuBar")
self.menu1 = QtWidgets.QMenu(self.menuBar)
self.menu1.setObjectName("menu1")
self.menu2 = QtWidgets.QMenu(self.menuBar)
self.menu2.setObjectName("menu2")
self.setMenuBar(self.menuBar)
self.mainToolBar = QtWidgets.QToolBar(self)
self.mainToolBar.setObjectName("mainToolBar")
self.addToolBar(QtCore.Qt.TopToolBarArea, self.mainToolBar)
self.statusBar = QtWidgets.QStatusBar(self)
self.statusBar.setObjectName("statusBar")
self.setStatusBar(self.statusBar)
self.actionthing1 = QtWidgets.QAction(self)
self.actionthing1.setObjectName("actionthing1")
self.actionthing2 = QtWidgets.QAction(self)
self.actionthing2.setObjectName("actionthing2")
self.actionthing4 = QtWidgets.QAction(self)
self.actionthing4.setObjectName("actionthing4")
self.actionthing5 = QtWidgets.QAction(self)
self.actionthing5.setObjectName("actionthing5")
self.menu1.addAction(self.actionthing1)
self.menu1.addAction(self.actionthing2)
self.menu2.addAction(self.actionthing4)
self.menu2.addAction(self.actionthing5)
self.menuBar.addAction(self.menu1.menuAction())
self.menuBar.addAction(self.menu2.menuAction())

self.retranslateUi()

self.tabWidget.setCurrentIndex(2)
QtCore.QMetaObject.connectSlotsByName(self)
self.setTabOrder(self.check_close_all, self.check_all_good)
self.setTabOrder(self.check_all_good, self.btn_add2env)
self.setTabOrder(self.btn_add2env, self.combo_fav_color)
self.setTabOrder(self.combo_fav_color, self.combo_fav_meal)
self.setTabOrder(self.combo_fav_meal, self.Btn_pick_path)
self.setTabOrder(self.Btn_pick_path, self.Line_hooks_path)
self.setTabOrder(self.Line_hooks_path, self.combo_pref_menu)
self.setTabOrder(self.combo_pref_menu, self.check_hungry)
self.setTabOrder(self.check_hungry, self.combo_pref_browser)

def retranslateUi(self):
_translate = QtCore.QCoreApplication.translate
self.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.groupBox_hooks_config.setTitle(_translate("MainWindow", "Chose a folder to store your hooks in"))
self.Btn_pick_path.setText(_translate("MainWindow", "Pick a Path"))
self.Line_hooks_path.setPlaceholderText(_translate("MainWindow", "/opt/Autodesk/shared/python_hooks"))
self.label_path2env.setText(_translate("MainWindow", "Add Path to your environnement (mac = ~/.bach_profile)"))
self.btn_add2env.setText(_translate("MainWindow", "Add"))
self.groupBox_Hooks_list.setTitle(_translate("MainWindow", "Add or remove Hooks"))
self.btn_add_hook.setText(_translate("MainWindow", "Add"))
self.btn_del_hook.setText(_translate("MainWindow", "remove"))
self.text_hooks_list.setPlaceholderText(_translate("MainWindow", "List of hooks "))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_hooks), _translate("MainWindow", "install hooks"))
self.label_collect_paths.setText(_translate("MainWindow", "List of Default Paths"))
self.btn_collect_add.setText(_translate("MainWindow", "Add Path"))
self.btn_collect_del.setText(_translate("MainWindow", "Del Path"))
self.btn_collect_list_all.setText(_translate("MainWindow", "List All"))
self.label_collect_setups.setText(_translate("MainWindow", "List of setup"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_collection), _translate("MainWindow", "batchs collections"))
self.groupBox_pref_left.setTitle(_translate("MainWindow", "Lists of options"))
self.label_pref_menu.setText(_translate("MainWindow", "Prefered Menu"))
self.combo_pref_menu.setItemText(0, _translate("MainWindow", "Main (shortcuts)"))
self.combo_pref_menu.setItemText(1, _translate("MainWindow", "Contextual"))
self.label_pref_browser.setText(_translate("MainWindow", "Browser memory"))
self.combo_pref_browser.setItemText(0, _translate("MainWindow", "Last visited"))
self.combo_pref_browser.setItemText(1, _translate("MainWindow", "Default location"))
self.label_fav_color.setText(_translate("MainWindow", "Favorite color"))
self.combo_fav_color.setItemText(0, _translate("MainWindow", "blue"))
self.combo_fav_color.setItemText(1, _translate("MainWindow", "green"))
self.combo_fav_color.setItemText(2, _translate("MainWindow", "yellow"))
self.combo_fav_color.setItemText(3, _translate("MainWindow", "orange"))
self.combo_fav_color.setItemText(4, _translate("MainWindow", "red"))
self.combo_fav_color.setItemText(5, _translate("MainWindow", "purple"))
self.combo_fav_color.setItemText(6, _translate("MainWindow", "Vert caca d\'oie"))
self.label_fav_meal.setText(_translate("MainWindow", "Favorite meal"))
self.combo_fav_meal.setItemText(0, _translate("MainWindow", "Boeuf Bourgignon"))
self.combo_fav_meal.setItemText(1, _translate("MainWindow", "Grilled Lobster"))
self.combo_fav_meal.setItemText(2, _translate("MainWindow", "Tuna Poke"))
self.combo_fav_meal.setItemText(3, _translate("MainWindow", "Vegan"))
self.combo_fav_meal.setItemText(4, _translate("MainWindow", "Grilled Entrecote"))
self.combo_fav_meal.setItemText(5, _translate("MainWindow", "Fast food"))
self.groupBox_prefs_Right.setTitle(_translate("MainWindow", "Check options"))
self.check_close_all.setText(_translate("MainWindow", "One closes all"))
self.check_hungry.setText(_translate("MainWindow", "I\'m hungry"))
self.check_all_good.setText(_translate("MainWindow", "All good"))
self.check_whatever.setText(_translate("MainWindow", "Whatever"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_prefs), _translate("MainWindow", "Prefs"))
self.btn_reload.setText(_translate("MainWindow", "Reload"))
self.btn_save.setText(_translate("MainWindow", "Save"))
self.menu1.setTitle(_translate("MainWindow", "menu1"))
self.menu2.setTitle(_translate("MainWindow", "menu2"))
self.actionthing1.setText(_translate("MainWindow", "thing1"))
self.actionthing2.setText(_translate("MainWindow", "thing2"))
self.actionthing4.setText(_translate("MainWindow", "thing4"))
self.actionthing5.setText(_translate("MainWindow", "thing5"))

if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
mainWin = Ui_MainWindow()
# mainWin = PathsWindow()
mainWin.show()
sys.exit(app.exec_())

Leave a Reply