Exemplo n.º 1
0
 def invalidate(self):
     SCObject.invalidate(self)
     parentMenu = self.getParentMenu()
     if parentMenu is not None:
         if not parentMenu.isFinalizing():
             parentMenu.invalidate()
     return
 def invalidate(self):
     SCObject.invalidate(self)
     parentMenu = self.getParentMenu()
     if parentMenu is not None:
         if not parentMenu.isFinalizing():
             parentMenu.invalidate()
     return
Exemplo n.º 3
0
 def invalidate(self):
     """ call this if something about our appearance has changed and
     we need to re-create our button """
     SCObject.invalidate(self)
     parentMenu = self.getParentMenu()
     if parentMenu is not None:
         # if our parent menu caused us to become invalid during its
         # finalization, don't re-invalidate it
         if not parentMenu.isFinalizing():
             parentMenu.invalidate()
Exemplo n.º 4
0
    def invalidate(self):
        """ Call this if something has changed and we should reconstruct
        ourselves:
        - member added
        - member removed
        - member visibility state change
        etc.
        """
        SCObject.invalidate(self)

        # If we're visible, we need to spawn a task to rebuild our menu
        # before we render. We could rebuild the menu immediately, but
        # that would get expensive if there are many consecutive member
        # adds and/or removes.
        if self.isVisible():
            self.privScheduleFinalize()
Exemplo n.º 5
0
Arquivo: SCMenu.py Projeto: nate97/src
 def invalidate(self):
     SCObject.invalidate(self)
     if self.isVisible():
         self.privScheduleFinalize()
Exemplo n.º 6
0
 def invalidate(self):
     SCObject.invalidate(self)
     if self.isVisible():
         self.privScheduleFinalize()