Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
tkinter.CallWrapper Class Reference

List of all members.

Public Member Functions

def __init__
def __call__

Public Attributes


Detailed Description

Internal class. Stores function to call when some user
defined Tcl function is called e.g. after an event occurred.

Definition at line 1386 of file

Constructor & Destructor Documentation

def tkinter.CallWrapper.__init__ (   self,
Store FUNC, SUBST and WIDGET as members.

Definition at line 1389 of file

01390     def __init__(self, func, subst, widget):
01391         """Store FUNC, SUBST and WIDGET as members."""
01392         self.func = func
01393         self.subst = subst
        self.widget = widget

Here is the caller graph for this function:

Member Function Documentation

def tkinter.CallWrapper.__call__ (   self,
Apply first function SUBST to arguments, than FUNC.

Definition at line 1394 of file

01395     def __call__(self, *args):
01396         """Apply first function SUBST to arguments, than FUNC."""
01397         try:
01398             if self.subst:
01399                 args = self.subst(*args)
01400             return self.func(*args)
01401         except SystemExit as msg:
01402             raise SystemExit(msg)
01403         except:
01404             self.widget._report_exception()

Member Data Documentation

Definition at line 1391 of file

Definition at line 1392 of file

Definition at line 1393 of file

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