AboutDialog
¶
digraph inheritancee68ecc9197 {
rankdir=UD;
ratio=compress;
size="8.0, 12.0";
"AboutDialog" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="Simple dialog to display typical About <application> dialog."];
"QDialog" -> "AboutDialog" [arrowsize=0.5,style="setlinewidth(0.5)"];
"QDialog" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded];
"QWidget" -> "QDialog" [arrowsize=0.5,style="setlinewidth(0.5)"];
"QObject" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded];
"wrapper" -> "QObject" [arrowsize=0.5,style="setlinewidth(0.5)"];
"QPaintDevice" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded];
"simplewrapper" -> "QPaintDevice" [arrowsize=0.5,style="setlinewidth(0.5)"];
"QWidget" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded];
"QObject" -> "QWidget" [arrowsize=0.5,style="setlinewidth(0.5)"];
"QPaintDevice" -> "QWidget" [arrowsize=0.5,style="setlinewidth(0.5)"];
"simplewrapper" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded];
"wrapper" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded];
"simplewrapper" -> "wrapper" [arrowsize=0.5,style="setlinewidth(0.5)"];
}
-
class
AboutDialog
(parent=None)[source]¶ Bases:
PyQt5.QtWidgets.QDialog
Simple dialog to display typical About <application> dialog. It will create a Dialog with the title being Dialog + <app name> and a default text combining the application name and version, organization name and domain.
This behaviour can be changed by setting the dialog window title (
setWindowTitle()
) and content (setText()
,setHtml()
)Example usage:
from taurus.external.qt import Qt from taurus.qt.qtgui.help import AboutDialog app = Qt.QApplication([]) app.setApplicationName("Example GUI") app.setApplicationVersion("1.2.3") app.setOrganizationName("Taurus") app.setOrganizationDomain("http://www.taurus-scada.org/") about_dialog = AboutDialog() pixmap = Qt.QIcon.fromTheme("folder-open").pixmap(64, 64) about_dialog.setPixmap(pixmap) about_dialog.exec_()
-
getHtml
()[source]¶ Gets the current dialog HTML text.
Returns: the current dialog HTML text. Return type: str
-
getPixmap
()[source]¶ Gets the current pixmap.
Returns: the current dialog pixmap Return type: Qt.QPixmap
-
getSource
()[source]¶ Gets the current dialog document source.
Returns: the current dialog document source. Return type: Qt.QUrl
-
html
¶ This property holds the current dialog HTML
Access functions:
-
loadUi
(filename=None, path=None)¶
-
pixmap
¶ This property holds the current dialog pixmap
Access functions:
-
setSource
(source)[source]¶ Sets the dialog document source.
Parameters: text (Qt.QUrl) – new document source
-
source
¶ This property holds the current dialog document source
Access functions:
-