[wxPython-users] Tracking user actions

Stefano Bartaletti s.bartaletti at dyemagic.com
Thu Jul 12 06:00:59 PDT 2007


Alle giovedì 12 luglio 2007, Mariano Di Felice ha scritto:
> Hi guys,
>     is there any method for tracking user actions in a wxPython
> application, without the programmer do write in every method << print
> "I'm logging">>, << print "I'm downloading...">>, etc etc??
>
> thx

You could use some metaclass programming or such, so to wrap methods and do 
things like printing info before and after functions, like this

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/366254

-- 
Cordialmente

Stefano Bartaletti
Responsabile Software

G.Tosi Spa Tintoria

Skype account: stefano.bartaletti
ICQ contact  : 1271960

Viale dell'Industria 61
21052 Busto Arsizio (VA)

Tel. +39 0331 34 48 11
Fax  +39 0331 35 21 23 




More information about the wxpython-users mailing list