This class provides a popup window for notification with the option to show the next error popup in the queue and to show the log window where you can see the traceback for an exception.
More...
|
def | cleanText (text) |
| Return a string with some special characters escaped for HTML. More...
|
|
|
| logWindow |
|
| layout |
|
| messages |
|
| msgLabel |
|
| disableCheck |
|
| btnLayout |
|
| okBtn |
|
| nextBtn |
|
| logBtn |
|
| btnLayoutWidget |
|
| lastEntry |
|
This class provides a popup window for notification with the option to show the next error popup in the queue and to show the log window where you can see the traceback for an exception.
◆ __init__()
def errordialog.ErrorDialog.__init__ |
( |
|
self, |
|
|
|
logWindow |
|
) |
| |
Create an ErrorDialog object.
- Parameters
-
object | logWindow: reference to LogWindow object that this popup belongs to |
◆ cleanText()
def errordialog.ErrorDialog.cleanText |
( |
|
text | ) |
|
|
static |
Return a string with some special characters escaped for HTML.
- Parameters
-
str | text: string to sanitize |
- Returns
- str: string with spechial characters replaced by HTML escape sequences
FIXME there is probably a pre-defined function for this, use it!
◆ closeEvent()
def errordialog.ErrorDialog.closeEvent |
( |
|
self, |
|
|
|
ev |
|
) |
| |
Specify close event action.
- Parameters
-
QEvent | ev: event from event handler |
Extends the parent class closeEvent hndling function to delete pending messages.
◆ disable()
def errordialog.ErrorDialog.disable |
( |
|
self, |
|
|
|
disable |
|
) |
| |
Disables popups.
- Parameters
-
bool | disable: disable popups if true, enables if false |
◆ show()
def errordialog.ErrorDialog.show |
( |
|
self, |
|
|
|
entry |
|
) |
| |
Show a log entry in a popup window.
- Parameters
-
dict | entry: log entry in dictionary form |
The documentation for this class was generated from the following file:
- gui/manager/errordialog.py