Changeset 71

Show
Ignore:
Timestamp:
03/23/02 12:45:53 (6 years ago)
Author:
sholloway
Message:

*** empty log message ***

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/RBJabber/RBJabber/SubjectObserver/BidableSubject.py

    r66 r71  
    6262            for observer in self._bids[-1]: 
    6363                apply(observer, (self,), UpdateDict) 
     64            result *= self._bids[-1] and 1 or 0 
     65        self._bids = None 
    6466        return result 
    6567     
  • trunk/RBJabber/RBJabber/SubjectObserver/CategorySubject.py

    r66 r71  
    8484            for category, value in _cachedUpdates.iteritems(): 
    8585                for each in self._ObserverList(category): 
    86                     self.UpdateObserver(each, {category: value}) 
     86                    if isinstance(category, tuple): 
     87                        self.UpdateObserver(each, {category[0]: value}) 
     88                    else: self.UpdateObserver(each, {category: value}) 
    8789            return 1 
    8890        else: return 0 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/wxSkinObject.py

    r66 r71  
    4646reColorHex = re.compile('(?:0x|#)([0-9a-fA-F]{6})') 
    4747 
     48# vv NOTE: DEBUG vvvvvvvvvvvvv 
     49 
     50__debug_window_counts__ = 0 
     51if __debug_window_counts__: 
     52    _WindowCount = 0 
     53    def _DEBUG_OnCreate(evt): 
     54        global _WindowCount  
     55        _WindowCount += 1 
     56 
     57    def _DEBUG_OnDestroy(evt): 
     58        global _WindowCount  
     59        _WindowCount -= 1 
     60        print '~~ -', _WindowCount  
     61 
     62# ^^ NOTE: DEBUG ^^^^^^^^^^^^^ 
     63 
    4864#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    4965#~ Class 
     
    86102            self.object.SetToolTipString(self.settings['tooltip']) 
    87103 
     104        # vv NOTE: DEBUG vvvvvvvvvvvvv 
     105         
     106        if __debug_window_counts__ and hasattr(self.object, 'PushEventHandler'): 
     107            eh = wx.wxEvtHandler() 
     108            self.object.PushEventHandler(eh) 
     109            _DEBUG_OnCreate(None) 
     110            eh.Connect(-1, -1, wx.wxEVT_DESTROY, _DEBUG_OnDestroy) 
     111         
     112        # ^^ NOTE: DEBUG ^^^^^^^^^^^^^ 
     113 
    88114    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    89115