Changeset 71
- Timestamp:
- 03/23/02 12:45:53 (6 years ago)
- Files:
-
- trunk/RBJabber/RBJabber/SubjectObserver/BidableSubject.py (modified) (1 diff)
- trunk/RBJabber/RBJabber/SubjectObserver/CategorySubject.py (modified) (1 diff)
- trunk/RBSkinning/RBSkinning/wxPythonSkin/event_handler_subject.py (added)
- trunk/RBSkinning/RBSkinning/wxPythonSkin/wxSkinObject.py (modified) (2 diffs)
- trunk/RBSkinning/RBSkinning/wxTools (added)
- trunk/RBSkinning/RBSkinning/wxTools/__init__.py (added)
- trunk/RBSkinning/RBSkinning/wxTools/wxEvtHandlerBidableCategorySubject.py (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/RBJabber/RBJabber/SubjectObserver/BidableSubject.py
r66 r71 62 62 for observer in self._bids[-1]: 63 63 apply(observer, (self,), UpdateDict) 64 result *= self._bids[-1] and 1 or 0 65 self._bids = None 64 66 return result 65 67 trunk/RBJabber/RBJabber/SubjectObserver/CategorySubject.py
r66 r71 84 84 for category, value in _cachedUpdates.iteritems(): 85 85 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}) 87 89 return 1 88 90 else: return 0 trunk/RBSkinning/RBSkinning/wxPythonSkin/wxSkinObject.py
r66 r71 46 46 reColorHex = re.compile('(?:0x|#)([0-9a-fA-F]{6})') 47 47 48 # vv NOTE: DEBUG vvvvvvvvvvvvv 49 50 __debug_window_counts__ = 0 51 if __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 48 64 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 49 65 #~ Class … … 86 102 self.object.SetToolTipString(self.settings['tooltip']) 87 103 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 88 114 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 89 115
