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_()
Gets the current dialog HTML text.
Returns: | the current dialog HTML text. |
---|---|
Return type: | str |
Gets the current pixmap.
Returns: | the current dialog pixmap |
---|---|
Return type: | Qt.QPixmap |
Gets the current dialog document source.
Returns: | the current dialog document source. |
---|---|
Return type: | Qt.QUrl |
This property holds the current dialog HTML
Access functions:
This property holds the current dialog pixmap
Access functions:
Resets the dialog HTML to an empty HTML document
Resets the dialog pixmap to a Null pixmap.
Sets the dialog pixmap
Parameters: | text (Qt.QPixmap) – new pixmap |
---|
Sets the dialog document source.
Parameters: | text (Qt.QUrl) – new document source |
---|
This property holds the current dialog document source
Access functions: