Пример #1
0
 def invalidate(self):
     SCObject.invalidate(self)
     parentMenu = self.getParentMenu()
     if parentMenu is not None:
         if not parentMenu.isFinalizing():
             parentMenu.invalidate()
     return
Пример #2
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()
Пример #3
0
 def invalidate(self):
     SCObject.invalidate(self)
     if self.isVisible():
         self.privScheduleFinalize()