Package diffpy :: Package pdfgui :: Package gui :: Module errorwrapper
[hide private]
[frames] | no frames]

Module errorwrapper

source code

Functions [hide private]
 
catchFunctionErrors(obj, funcName)
Wrap a function so its errors get transferred to a dialog.
source code
 
catchObjectErrors(obj, ex=[])
Wrap all functions of an object so that the exceptions are caught.
source code
Variables [hide private]
  __id__ = '$Id: errorwrapper.py 3002 2009-04-06 03:27:38Z juhas $'
This module contains a function wrapper and an object wrapper that catch control errors and shows them in an error report dialog.
  excluded = ['MoveAfterInTabOrder', 'Fit', 'Title', 'HelpText',...
Function Details [hide private]

catchFunctionErrors(obj, funcName)

source code 
Wrap a function so its errors get transferred to a dialog.

obj         --  Object containing the function. It is assumed that the
                object has an attribute named 'mainFrame', which is a
                reference to the MainFrame instance, which contains
                information about how and when to display errors.
funcName    --  Name of a function to wrap.

Returns the wrapped function

catchObjectErrors(obj, ex=[])

source code 
Wrap all functions of an object so that the exceptions are caught.

obj --  Object containing the function. It is assumed that the object has an
        attribute named 'mainFrame', which is a reference to the MainFrame
        instance, which contains information about how and when to display
        errors.
ex  --  A list of function names to exclude. These are excluded in addition
        to the 'excluded' list defined in the method.

All functions starting with '_' are excluded.


Variables Details [hide private]

__id__

This module contains a function wrapper and an object wrapper that catch
control errors and shows them in an error report dialog. This is used by
PDFPanel and MainFrame.

Value:
'$Id: errorwrapper.py 3002 2009-04-06 03:27:38Z juhas $'

excluded

Value:
['MoveAfterInTabOrder',
 'Fit',
 'Title',
 'HelpText',
 'InitDialog',
 'GetWindowBorderSize',
 'IsModal',
 'SetTitle',
...