Qudi
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
errordialog.ErrorDialog Class Reference

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...

Inheritance diagram for errordialog.ErrorDialog:
Inheritance graph
[legend]
Collaboration diagram for errordialog.ErrorDialog:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, logWindow)
 Create an ErrorDialog object. More...
 
def show (self, entry)
 Show a log entry in a popup window. More...
 
def closeEvent (self, ev)
 Specify close event action. More...
 
def okClicked (self)
 Marks message as acceped and closes popup.
 
def logClicked (self)
 Marks message as accepted and shows log window.
 
def nextMessage (self)
 Shows the next error message popup.
 
def disable (self, disable)
 Disables popups. More...
 

Static Public Member Functions

def cleanText (text)
 Return a string with some special characters escaped for HTML. More...
 

Public Attributes

 logWindow
 
 layout
 
 messages
 
 msgLabel
 
 disableCheck
 
 btnLayout
 
 okBtn
 
 nextBtn
 
 logBtn
 
 btnLayoutWidget
 
 lastEntry
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

def errordialog.ErrorDialog.__init__ (   self,
  logWindow 
)

Create an ErrorDialog object.

Parameters
objectlogWindow: reference to LogWindow object that this popup belongs to

Member Function Documentation

◆ cleanText()

def errordialog.ErrorDialog.cleanText (   text)
static

Return a string with some special characters escaped for HTML.

Parameters
strtext: 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
QEventev: 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
booldisable: disable popups if true, enables if false

◆ show()

def errordialog.ErrorDialog.show (   self,
  entry 
)

Show a log entry in a popup window.

Parameters
dictentry: log entry in dictionary form

The documentation for this class was generated from the following file: