Changeset 178
- Timestamp:
- 06/18/02 11:14:30 (6 years ago)
- Files:
-
- trunk/RBFoundation/RBFoundation/WeakBind.py (modified) (2 diffs)
- trunk/RBSkinning/RBSkinning/wxPythonSkin/layout_flexgrid.py (added)
- trunk/RBSkinning/RBSkinning/wxPythonSkin/wxSkinObject.py (modified) (1 diff)
- trunk/RBSkinning/RBSkinning/wxTools/wxEvtHandlerBidableCategorySubject.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/RBFoundation/RBFoundation/WeakBind.py
r176 r178 113 113 return self._DoCall(args, kw) 114 114 115 def __getattribute__(self, name):116 try:117 return BoundCallableBase.__getattribute__(self, name)118 except AttributeError:119 if self.im_self and self.im_self():120 try:121 return getattr(self.im_self(), name)122 except AttributeError: pass123 if self.im_func and self.im_func():124 try:125 return getattr(self.im_func(), name)126 except AttributeError: pass127 raise128 129 115 def __eq__(self, other): 130 116 if isinstance(other, WeakBoundCallable): … … 178 164 return self._DoCall(args, kw) 179 165 180 def __getattribute__(self, name):181 try:182 return BoundCallableBase.__getattribute__(self, name)183 except AttributeError:184 if self.im_self and self.im_self():185 try:186 return getattr(self.im_self(), name)187 except AttributeError: pass188 if self.im_func and self.im_func():189 try:190 return getattr(self.im_func(), name)191 except AttributeError: pass192 raise193 194 166 def __eq__(self, other): 195 167 if isinstance(other, StrongBoundCallable): trunk/RBSkinning/RBSkinning/wxPythonSkin/wxSkinObject.py
r152 r178 98 98 self.object.SetBackgroundColour(wxColorEval(self.settings['bgcolor'])) 99 99 if 'enable' in self.settings: 100 self.object. SetToolTipString(self.wxEval('enable'))100 self.object.Enable(self.wxEval('enable')) 101 101 if 'tooltip' in self.settings: 102 102 self.object.SetToolTipString(self.settings['tooltip']) trunk/RBSkinning/RBSkinning/wxTools/wxEvtHandlerBidableCategorySubject.py
r176 r178 58 58 EventCallbackName = 'event' 59 59 60 def __init__(self, wxEvtHandlerBidableCategorySubject=None):60 def __init__(self, EventHandler=None): 61 61 self.EvtHandler = wx.wxEvtHandler() 62 62 BidableCategorySubject.__init__(self)
