AboutDialog

Inheritance diagram of 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
classmethod getQtDesignerPluginInfo()[source]
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:

resetHtml()[source]

Resets the dialog HTML to an empty HTML document

resetPixmap()[source]

Resets the dialog pixmap to a Null pixmap.

setHtml(html)[source]

Sets the dialog HTML text.

Parameters:text (str) – new HTML text
setPixmap(pixmap)[source]

Sets the dialog pixmap

Parameters:text (Qt.QPixmap) – new pixmap
setSource(source)[source]

Sets the dialog document source.

Parameters:text (Qt.QUrl) – new document source
setText(text)[source]

Sets the dialog text.

Parameters:text (str) – new text
source

This property holds the current dialog document source

Access functions: