py::gui::helper Namespace Reference


Functions

def show_failure


Function Documentation

def py::gui::helper::show_failure (   f  ) 

decorator:
        show a traceback_error dialog if decorated QWidget method throws an exception
00024                       :
00025         """
00026         decorator:
00027                 show a traceback_error dialog if decorated QWidget method throws an exception
00028         """
00029         def new_f( self, *args, **kwds ) :
00030                 try :
00031                         return f(self, *args, **kwds)
00032                 except :
00033                         from gui.dialog import traceback_error
00034                         traceback_error(self, qo.utils.shift_exc_info(sys.exc_info())).exec_()
00035         new_f.func_name = f.func_name
00036         return new_f
00037 
00038 


Generated on Tue Oct 9 20:40:27 2007 for Qomics by  doxygen 1.5.3