AboutDialog
¶

-
class
AboutDialog
(parent=None)[source]¶ Bases:
PyQt4.QtGui.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:
-