Added saving and filling buttons from file.
TODO: Fix too long names and add functionality that removes buttons that are removed from list
This commit is contained in:
39
gui/gui.py
39
gui/gui.py
@@ -78,7 +78,12 @@ class Ui_MainWindow(object):
|
||||
item.setIcon(icon8)
|
||||
self.menu.addItem(item)
|
||||
self.centralwidget_lay.addWidget(self.menu)
|
||||
self.content = QtWidgets.QStackedWidget(self.centralwidget)
|
||||
self.main_content_to_player_box = QtWidgets.QWidget(self.centralwidget)
|
||||
self.main_content_to_player_box.setObjectName("main_content_to_player_box")
|
||||
self.main_content_to_player_box_lay = QtWidgets.QVBoxLayout(self.main_content_to_player_box)
|
||||
self.main_content_to_player_box_lay.setContentsMargins(0, 0, 0, 0)
|
||||
self.main_content_to_player_box_lay.setObjectName("main_content_to_player_box_lay")
|
||||
self.content = QtWidgets.QStackedWidget(self.main_content_to_player_box)
|
||||
self.content.setObjectName("content")
|
||||
self.pads_page = QtWidgets.QWidget()
|
||||
self.pads_page.setObjectName("pads_page")
|
||||
@@ -105,6 +110,7 @@ class Ui_MainWindow(object):
|
||||
self.pads_collection_2_tab = QtWidgets.QWidget()
|
||||
self.pads_collection_2_tab.setObjectName("pads_collection_2_tab")
|
||||
self.pads_collection_2_tab_lay = QtWidgets.QVBoxLayout(self.pads_collection_2_tab)
|
||||
self.pads_collection_2_tab_lay.setContentsMargins(0, 0, 0, 0)
|
||||
self.pads_collection_2_tab_lay.setObjectName("pads_collection_2_tab_lay")
|
||||
self.pads_collection_2_widget = QtWidgets.QWidget(self.pads_collection_2_tab)
|
||||
self.pads_collection_2_widget.setMaximumSize(QtCore.QSize(16777215, 16777215))
|
||||
@@ -115,8 +121,8 @@ class Ui_MainWindow(object):
|
||||
self.pads_content.addTab(self.pads_collection_2_tab, "")
|
||||
self.edit_pads_tab = QtWidgets.QWidget()
|
||||
self.edit_pads_tab.setObjectName("edit_pads_tab")
|
||||
self.verticalLayout = QtWidgets.QVBoxLayout(self.edit_pads_tab)
|
||||
self.verticalLayout.setObjectName("verticalLayout")
|
||||
self.edit_pads_tab_lay = QtWidgets.QVBoxLayout(self.edit_pads_tab)
|
||||
self.edit_pads_tab_lay.setObjectName("edit_pads_tab_lay")
|
||||
self.edit_collections_label = QtWidgets.QLabel(self.edit_pads_tab)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
@@ -124,7 +130,7 @@ class Ui_MainWindow(object):
|
||||
sizePolicy.setHeightForWidth(self.edit_collections_label.sizePolicy().hasHeightForWidth())
|
||||
self.edit_collections_label.setSizePolicy(sizePolicy)
|
||||
self.edit_collections_label.setObjectName("edit_collections_label")
|
||||
self.verticalLayout.addWidget(self.edit_collections_label)
|
||||
self.edit_pads_tab_lay.addWidget(self.edit_collections_label)
|
||||
self.edit_pads_collections_widget = QtWidgets.QWidget(self.edit_pads_tab)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
@@ -132,9 +138,9 @@ class Ui_MainWindow(object):
|
||||
sizePolicy.setHeightForWidth(self.edit_pads_collections_widget.sizePolicy().hasHeightForWidth())
|
||||
self.edit_pads_collections_widget.setSizePolicy(sizePolicy)
|
||||
self.edit_pads_collections_widget.setObjectName("edit_pads_collections_widget")
|
||||
self.horizontalLayout = QtWidgets.QHBoxLayout(self.edit_pads_collections_widget)
|
||||
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
|
||||
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||
self.edit_pads_collections_widget_lay = QtWidgets.QHBoxLayout(self.edit_pads_collections_widget)
|
||||
self.edit_pads_collections_widget_lay.setContentsMargins(0, 0, 0, 0)
|
||||
self.edit_pads_collections_widget_lay.setObjectName("edit_pads_collections_widget_lay")
|
||||
self.edit_first_pads_collection_widget = QtWidgets.QWidget(self.edit_pads_collections_widget)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
@@ -154,7 +160,7 @@ class Ui_MainWindow(object):
|
||||
self.edit_first_pads_collection_list.setDragEnabled(False)
|
||||
self.edit_first_pads_collection_list.setObjectName("edit_first_pads_collection_list")
|
||||
self.edit_first_pads_collection_lay.addWidget(self.edit_first_pads_collection_list)
|
||||
self.horizontalLayout.addWidget(self.edit_first_pads_collection_widget)
|
||||
self.edit_pads_collections_widget_lay.addWidget(self.edit_first_pads_collection_widget)
|
||||
self.edit_second_pads_collection_widget = QtWidgets.QWidget(self.edit_pads_collections_widget)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
@@ -162,20 +168,20 @@ class Ui_MainWindow(object):
|
||||
sizePolicy.setHeightForWidth(self.edit_second_pads_collection_widget.sizePolicy().hasHeightForWidth())
|
||||
self.edit_second_pads_collection_widget.setSizePolicy(sizePolicy)
|
||||
self.edit_second_pads_collection_widget.setObjectName("edit_second_pads_collection_widget")
|
||||
self.edit_first_pads_collection_lay_2 = QtWidgets.QVBoxLayout(self.edit_second_pads_collection_widget)
|
||||
self.edit_first_pads_collection_lay_2.setContentsMargins(0, 0, 0, 0)
|
||||
self.edit_first_pads_collection_lay_2.setObjectName("edit_first_pads_collection_lay_2")
|
||||
self.edit_second_pads_collection_lay = QtWidgets.QVBoxLayout(self.edit_second_pads_collection_widget)
|
||||
self.edit_second_pads_collection_lay.setContentsMargins(0, 0, 0, 0)
|
||||
self.edit_second_pads_collection_lay.setObjectName("edit_second_pads_collection_lay")
|
||||
self.edit_second_pads_collection_label = QtWidgets.QLabel(self.edit_second_pads_collection_widget)
|
||||
self.edit_second_pads_collection_label.setObjectName("edit_second_pads_collection_label")
|
||||
self.edit_first_pads_collection_lay_2.addWidget(self.edit_second_pads_collection_label)
|
||||
self.edit_second_pads_collection_lay.addWidget(self.edit_second_pads_collection_label)
|
||||
self.edit_second_pads_collection_list = QtWidgets.QListWidget(self.edit_second_pads_collection_widget)
|
||||
self.edit_second_pads_collection_list.setStyleSheet("font: 15pt \"Segoe UI\";")
|
||||
self.edit_second_pads_collection_list.setEditTriggers(QtWidgets.QAbstractItemView.DoubleClicked|QtWidgets.QAbstractItemView.EditKeyPressed|QtWidgets.QAbstractItemView.SelectedClicked)
|
||||
self.edit_second_pads_collection_list.setDragEnabled(True)
|
||||
self.edit_second_pads_collection_list.setObjectName("edit_second_pads_collection_list")
|
||||
self.edit_first_pads_collection_lay_2.addWidget(self.edit_second_pads_collection_list)
|
||||
self.horizontalLayout.addWidget(self.edit_second_pads_collection_widget)
|
||||
self.verticalLayout.addWidget(self.edit_pads_collections_widget)
|
||||
self.edit_second_pads_collection_lay.addWidget(self.edit_second_pads_collection_list)
|
||||
self.edit_pads_collections_widget_lay.addWidget(self.edit_second_pads_collection_widget)
|
||||
self.edit_pads_tab_lay.addWidget(self.edit_pads_collections_widget)
|
||||
self.pads_content.addTab(self.edit_pads_tab, "")
|
||||
self.pads_page_lay.addWidget(self.pads_content)
|
||||
self.content.addWidget(self.pads_page)
|
||||
@@ -197,7 +203,8 @@ class Ui_MainWindow(object):
|
||||
self.settings_page = QtWidgets.QWidget()
|
||||
self.settings_page.setObjectName("settings_page")
|
||||
self.content.addWidget(self.settings_page)
|
||||
self.centralwidget_lay.addWidget(self.content)
|
||||
self.main_content_to_player_box_lay.addWidget(self.content)
|
||||
self.centralwidget_lay.addWidget(self.main_content_to_player_box)
|
||||
MainWindow.setCentralWidget(self.centralwidget)
|
||||
|
||||
self.retranslateUi(MainWindow)
|
||||
|
||||
Reference in New Issue
Block a user