Source code for sas.qtgui.Plotting.UI.WindowTitleUI
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '.\src\sas\qtgui\Plotting\UI\WindowTitleUI.ui'
#
# Created by: PyQt5 UI code generator 5.15.9
#
# 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
[docs]class Ui_WindowTitle(object):
[docs] def setupUi(self, WindowTitle):
WindowTitle.setObjectName("WindowTitle")
WindowTitle.setWindowModality(QtCore.Qt.ApplicationModal)
WindowTitle.resize(287, 137)
self.gridLayout = QtWidgets.QGridLayout(WindowTitle)
self.gridLayout.setObjectName("gridLayout")
self.label = QtWidgets.QLabel(WindowTitle)
self.label.setObjectName("label")
self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
self.txtTitle = QtWidgets.QLineEdit(WindowTitle)
self.txtTitle.setObjectName("txtTitle")
self.gridLayout.addWidget(self.txtTitle, 0, 1, 1, 1)
self.buttonBox = QtWidgets.QDialogButtonBox(WindowTitle)
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
self.buttonBox.setObjectName("buttonBox")
self.gridLayout.addWidget(self.buttonBox, 1, 0, 1, 2)
self.retranslateUi(WindowTitle)
self.buttonBox.accepted.connect(WindowTitle.accept) # type: ignore
self.buttonBox.rejected.connect(WindowTitle.reject) # type: ignore
QtCore.QMetaObject.connectSlotsByName(WindowTitle)
[docs] def retranslateUi(self, WindowTitle):
_translate = QtCore.QCoreApplication.translate
WindowTitle.setWindowTitle(_translate("WindowTitle", "Modify Window Title"))
self.label.setText(_translate("WindowTitle", "New title"))