/[gnue]/gnue-designer/src/base/Instance.py
ViewVC logotype

Diff of /gnue-designer/src/base/Instance.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.115 by jcater, Tue Jun 17 04:55:08 2003 UTC revision 1.116 by jcater, Tue Jul 8 16:18:02 2003 UTC
# Line 114  class BaseInstance(wxFrame, EventControl Line 114  class BaseInstance(wxFrame, EventControl
114      # During startup, we will cache all events      # During startup, we will cache all events
115      # so we can execute them when everything has      # so we can execute them when everything has
116      # been initialized.      # been initialized.
117      self.__origDispatchEvent = self.dispatchEvent      self.startCachingEvents()
     self.dispatchEvent = self.__cacheEvents  
     self.__cachedEvents = []  
118    
119      # Register ourself with RuntimeSettings      # Register ourself with RuntimeSettings
120      RuntimeSettings.registerInstance(self)      RuntimeSettings.registerInstance(self)
# Line 261  class BaseInstance(wxFrame, EventControl Line 259  class BaseInstance(wxFrame, EventControl
259    
260      EVT_CLOSE(self, self.OnClose)      EVT_CLOSE(self, self.OnClose)
261    
262      #      self.stopCachingEvents()
     # Play all the cached events  
     #  
     self.dispatchEvent = self.__origDispatchEvent  
     for arg, parms in self.__cachedEvents:  
       self.dispatchEvent(*arg, **parms)  
   
   def __cacheEvents(self, *arg, **parms):  
     self.__cachedEvents.append((arg, parms))  
263    
264    def _initMenu(self):    def _initMenu(self):
265      # Add the [sub]menus      # Add the [sub]menus

Legend:
Removed from v.1.115  
changed lines
  Added in v.1.116

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26