#NEWLINE# def browser_event_cb( view , event , from_window ) : #NEWLINE# #INDENT# global sCaptureElem #NEWLINE# if ( event is None ) : #NEWLINE# #INDENT# event = wnd ( ) . event #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# event = get_main_frame ( ) . gobject_wrap ( event ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# et = eventGetType ( event ) #NEWLINE# if ( sCaptureElem == 'resize' ) : #NEWLINE# #INDENT# onResize ( ) #NEWLINE# return #NEWLINE# #UNINDENT# if ( et == 'mouseout' ) : #NEWLINE# #INDENT# _dispatchCapturedMouseoutEvent ( event ) #NEWLINE# #UNINDENT# if ( ( et == 'keyup' ) or ( et == 'keydown' ) or ( et == 'keypress' ) or ( et == 'change' ) ) : #NEWLINE# #INDENT# return _dispatchCapturedEvent ( event ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return _dispatchCapturedMouseEvent ( event )