peng3d/window.py
def dispatch_event(self,event_type,*args):
        """
        Internal event handling method.
        
        This method extends the behavior inherited from :py:meth:`pyglet.window.Window.dispatch_event()` by calling the various :py:meth:`handleEvent()` methods.
        
        By default, :py:meth:`Peng.handleEvent()`\ , :py:meth:`handleEvent()` and :py:meth:`Menu.handleEvent()` are called in this order to handle events.
        
        Note that some events may not be handled by all handlers during early startup.
        """
        super(PengWindow,self).dispatch_event(event_type,*args)
        try:
            p = self.peng
            m = self.menu
        except AttributeError:
            # To prevent early startup errors
            if hasattr(self,"peng") and self.peng.cfg["debug.events.logerr"]:
                print("Error:")
                traceback.print_exc()
            return
        p.handleEvent(event_type,args,self)
        self.handleEvent(event_type,args)
        m.handleEvent(event_type,args)
def dispatch_event(self,event_type,*args):
        """
        Internal event handling method.
        
        This method extends the behavior inherited from :py:meth:`pyglet.window.Window.dispatch_event()` by calling the various :py:meth:`handleEvent()` methods.
        
        By default, :py:meth:`Peng.handleEvent()`\ , :py:meth:`handleEvent()` and :py:meth:`Menu.handleEvent()` are called in this order to handle events.
        
        Note that some events may not be handled by all handlers during early startup.
        """
        super(PengWindow,self).dispatch_event(event_type,*args)
        try:
            p = self.peng
            m = self.menu
        except AttributeError:
            # To prevent early startup errors
            if hasattr(self,"peng") and self.peng.cfg["debug.events.logerr"]:
                print("Error:")
                traceback.print_exc()
            return
        p.handleEvent(event_type,args,self)
        self.handleEvent(event_type,args)
        m.handleEvent(event_type,args)
def dispatch_event ( self , event_type , * args ) : super ( PengWindow , self ) . dispatch_event ( event_type , * args ) try : p = self . peng m = self . menu except AttributeError : # To prevent early startup errors if hasattr ( self , "peng" ) and self . peng . cfg [ "debug.events.logerr" ] : print ( "Error:" ) traceback . print_exc ( ) return p . handleEvent ( event_type , args , self ) self . handleEvent ( event_type , args ) m . handleEvent ( event_type , args )
Internal event handling method.
        
        This method extends the behavior inherited from :py:meth:`pyglet.window.Window.dispatch_event()` by calling the various :py:meth:`handleEvent()` methods.
        
        By default, :py:meth:`Peng.handleEvent()`\ , :py:meth:`handleEvent()` and :py:meth:`Menu.handleEvent()` are called in this order to handle events.
        
        Note that some events may not be handled by all handlers during early startup.
Internal event handling method . This method extends the behavior inherited from : py : meth : pyglet . window . Window . dispatch_event () by calling the various : py : meth : handleEvent () methods . By default : py : meth : Peng . handleEvent () \ : py : meth : handleEvent () and : py : meth : Menu . handleEvent () are called in this order to handle events . Note that some events may not be handled by all handlers during early startup .