You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
150 lines
7.9 KiB
Python
150 lines
7.9 KiB
Python
4 years ago
|
# -*- coding: utf-8 -*-
|
||
|
|
||
|
# Form implementation generated from reading ui file 'dialogs/presence_modify_dialog/presence_modify_dialog.ui'
|
||
|
#
|
||
|
# Created by: PyQt5 UI code generator 5.15.0
|
||
|
#
|
||
|
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
|
||
|
# run again. Do not edit this file unless you know what you are doing.
|
||
|
|
||
|
|
||
|
from PyQt5 import QtCore, QtGui, QtWidgets
|
||
|
|
||
|
|
||
|
class Ui_PresenceModDialog(object):
|
||
|
def setupUi(self, PresenceModDialog):
|
||
|
PresenceModDialog.setObjectName("PresenceModDialog")
|
||
|
PresenceModDialog.resize(376, 405)
|
||
|
self.verticalLayout = QtWidgets.QVBoxLayout(PresenceModDialog)
|
||
|
self.verticalLayout.setObjectName("verticalLayout")
|
||
|
self.frame = QtWidgets.QFrame(PresenceModDialog)
|
||
|
self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
|
||
|
self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
|
||
|
self.frame.setObjectName("frame")
|
||
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.frame)
|
||
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||
|
self.dialog_topic_label = QtWidgets.QLabel(self.frame)
|
||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||
|
sizePolicy.setHorizontalStretch(0)
|
||
|
sizePolicy.setVerticalStretch(0)
|
||
|
sizePolicy.setHeightForWidth(self.dialog_topic_label.sizePolicy().hasHeightForWidth())
|
||
|
self.dialog_topic_label.setSizePolicy(sizePolicy)
|
||
|
font = QtGui.QFont()
|
||
|
font.setPointSize(11)
|
||
|
font.setBold(True)
|
||
|
font.setWeight(75)
|
||
|
self.dialog_topic_label.setFont(font)
|
||
|
self.dialog_topic_label.setAlignment(QtCore.Qt.AlignCenter)
|
||
|
self.dialog_topic_label.setObjectName("dialog_topic_label")
|
||
|
self.verticalLayout_2.addWidget(self.dialog_topic_label)
|
||
|
self.frame_2 = QtWidgets.QFrame(self.frame)
|
||
|
self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
|
||
|
self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
|
||
|
self.frame_2.setObjectName("frame_2")
|
||
|
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.frame_2)
|
||
|
self.verticalLayout_3.setSpacing(5)
|
||
|
self.verticalLayout_3.setObjectName("verticalLayout_3")
|
||
|
self.presence_name_label = QtWidgets.QLabel(self.frame_2)
|
||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||
|
sizePolicy.setHorizontalStretch(0)
|
||
|
sizePolicy.setVerticalStretch(0)
|
||
|
sizePolicy.setHeightForWidth(self.presence_name_label.sizePolicy().hasHeightForWidth())
|
||
|
self.presence_name_label.setSizePolicy(sizePolicy)
|
||
|
font = QtGui.QFont()
|
||
|
font.setBold(True)
|
||
|
font.setWeight(75)
|
||
|
self.presence_name_label.setFont(font)
|
||
|
self.presence_name_label.setObjectName("presence_name_label")
|
||
|
self.verticalLayout_3.addWidget(self.presence_name_label)
|
||
|
self.presence_name_line = QtWidgets.QLineEdit(self.frame_2)
|
||
|
self.presence_name_line.setObjectName("presence_name_line")
|
||
|
self.verticalLayout_3.addWidget(self.presence_name_line)
|
||
|
self.presence_domain_label = QtWidgets.QLabel(self.frame_2)
|
||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||
|
sizePolicy.setHorizontalStretch(0)
|
||
|
sizePolicy.setVerticalStretch(0)
|
||
|
sizePolicy.setHeightForWidth(self.presence_domain_label.sizePolicy().hasHeightForWidth())
|
||
|
self.presence_domain_label.setSizePolicy(sizePolicy)
|
||
|
font = QtGui.QFont()
|
||
|
font.setBold(True)
|
||
|
font.setWeight(75)
|
||
|
self.presence_domain_label.setFont(font)
|
||
|
self.presence_domain_label.setObjectName("presence_domain_label")
|
||
|
self.verticalLayout_3.addWidget(self.presence_domain_label)
|
||
|
self.presence_domain_line = QtWidgets.QLineEdit(self.frame_2)
|
||
|
self.presence_domain_line.setObjectName("presence_domain_line")
|
||
|
self.verticalLayout_3.addWidget(self.presence_domain_line)
|
||
|
self.presence_link_label = QtWidgets.QLabel(self.frame_2)
|
||
|
font = QtGui.QFont()
|
||
|
font.setBold(True)
|
||
|
font.setWeight(75)
|
||
|
self.presence_link_label.setFont(font)
|
||
|
self.presence_link_label.setObjectName("presence_link_label")
|
||
|
self.verticalLayout_3.addWidget(self.presence_link_label)
|
||
|
self.presence_link_list = QtWidgets.QLineEdit(self.frame_2)
|
||
|
self.presence_link_list.setObjectName("presence_link_list")
|
||
|
self.verticalLayout_3.addWidget(self.presence_link_list)
|
||
|
self.artist_label = QtWidgets.QLabel(self.frame_2)
|
||
|
font = QtGui.QFont()
|
||
|
font.setPointSize(10)
|
||
|
font.setBold(True)
|
||
|
font.setWeight(75)
|
||
|
self.artist_label.setFont(font)
|
||
|
self.artist_label.setObjectName("artist_label")
|
||
|
self.verticalLayout_3.addWidget(self.artist_label)
|
||
|
self.artist_search_line = QtWidgets.QLineEdit(self.frame_2)
|
||
|
self.artist_search_line.setObjectName("artist_search_line")
|
||
|
self.verticalLayout_3.addWidget(self.artist_search_line)
|
||
|
self.artist_result_list = QtWidgets.QListView(self.frame_2)
|
||
|
self.artist_result_list.setObjectName("artist_result_list")
|
||
|
self.verticalLayout_3.addWidget(self.artist_result_list)
|
||
|
self.artist_selection_list = QtWidgets.QListView(self.frame_2)
|
||
|
self.artist_selection_list.setObjectName("artist_selection_list")
|
||
|
self.verticalLayout_3.addWidget(self.artist_selection_list)
|
||
|
self.artist_edit_layout = QtWidgets.QHBoxLayout()
|
||
|
self.artist_edit_layout.setObjectName("artist_edit_layout")
|
||
|
self.create_artist_button = QtWidgets.QPushButton(self.frame_2)
|
||
|
self.create_artist_button.setObjectName("create_artist_button")
|
||
|
self.artist_edit_layout.addWidget(self.create_artist_button)
|
||
|
self.edit_artist_button = QtWidgets.QPushButton(self.frame_2)
|
||
|
self.edit_artist_button.setObjectName("edit_artist_button")
|
||
|
self.artist_edit_layout.addWidget(self.edit_artist_button)
|
||
|
self.delete_artist_button = QtWidgets.QPushButton(self.frame_2)
|
||
|
self.delete_artist_button.setObjectName("delete_artist_button")
|
||
|
self.artist_edit_layout.addWidget(self.delete_artist_button)
|
||
|
self.verticalLayout_3.addLayout(self.artist_edit_layout)
|
||
|
self.verticalLayout_2.addWidget(self.frame_2)
|
||
|
self.verticalLayout.addWidget(self.frame)
|
||
|
self.buttonBox = QtWidgets.QDialogButtonBox(PresenceModDialog)
|
||
|
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
|
||
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
|
||
|
self.buttonBox.setObjectName("buttonBox")
|
||
|
self.verticalLayout.addWidget(self.buttonBox)
|
||
|
|
||
|
self.retranslateUi(PresenceModDialog)
|
||
|
self.buttonBox.accepted.connect(PresenceModDialog.accept)
|
||
|
self.buttonBox.rejected.connect(PresenceModDialog.reject)
|
||
|
QtCore.QMetaObject.connectSlotsByName(PresenceModDialog)
|
||
|
|
||
|
def retranslateUi(self, PresenceModDialog):
|
||
|
_translate = QtCore.QCoreApplication.translate
|
||
|
PresenceModDialog.setWindowTitle(_translate("PresenceModDialog", "Dialog"))
|
||
|
self.dialog_topic_label.setText(_translate("PresenceModDialog", "Presence Topic"))
|
||
|
self.presence_name_label.setText(_translate("PresenceModDialog", "Presence Name:"))
|
||
|
self.presence_domain_label.setText(_translate("PresenceModDialog", "Presence Domain:"))
|
||
|
self.presence_link_label.setText(_translate("PresenceModDialog", "Presence Link:"))
|
||
|
self.artist_label.setText(_translate("PresenceModDialog", "Artist:"))
|
||
|
self.create_artist_button.setText(_translate("PresenceModDialog", "Create Artist"))
|
||
|
self.edit_artist_button.setText(_translate("PresenceModDialog", "Edit Artist"))
|
||
|
self.delete_artist_button.setText(_translate("PresenceModDialog", "Delete Artist"))
|
||
|
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
import sys
|
||
|
app = QtWidgets.QApplication(sys.argv)
|
||
|
PresenceModDialog = QtWidgets.QDialog()
|
||
|
ui = Ui_PresenceModDialog()
|
||
|
ui.setupUi(PresenceModDialog)
|
||
|
PresenceModDialog.show()
|
||
|
sys.exit(app.exec_())
|