Changeset 752 for trunk/RBSkinning
- Timestamp:
- 03/21/04 00:05:32 (5 years ago)
- Files:
-
- trunk/RBSkinning/RBSkinning/wxPythonSkin/dockhost.py (modified) (1 diff)
- trunk/RBSkinning/RBSkinning/wxTools/wxTimerSubject.py (modified) (2 diffs)
- trunk/RBSkinning/RBSkinning/xmlPython/inline.py (modified) (1 diff)
- trunk/RBSkinning/demo/wxPythonSkin/activex/adobe.py (added)
- trunk/RBSkinning/demo/wxPythonSkin/widgets/pycrust.py (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/RBSkinning/RBSkinning/wxPythonSkin/dockhost.py
r733 r752 70 70 self.wxStandardOptions() 71 71 72 self.object.dockcontext = self.wxEvalCond('dockcontext', None) 73 try: SetDockHost = self.object.dockcontext.SetDockHost 74 except AttributeError: pass 75 else: SetDockHost(weakref.proxy(self.object)) 72 dockcontext = self.wxEvalCond('dockcontext', None) 73 if dockcontext is not None: 74 self.object.dockcontext = dockcontext 75 try: AddDockHost = dockcontext.AddDockHost 76 except AttributeError: pass 77 else: AddDockHost(weakref.proxy(self.object)) 76 78 trunk/RBSkinning/RBSkinning/wxTools/wxTimerSubject.py
r460 r752 24 24 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 25 25 26 from RBFoundation.ContextApply import ContextApply_s 26 27 from RBFoundation.SubObs.Basic import Subject 27 28 from wxPython import wx … … 31 32 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 33 34 class wxTimerCallback(wx.wxTimer): 35 def __init__(self, *args, **kw): 36 wx.wxTimer.__init__(self) 37 if args or kw: 38 self.SetCallback(*args, **kw) 39 40 def GetCallback(self): 41 return self.callback 42 def SetCallback(self, callback=None, *args, **kw): 43 self.callback = ContextApply_s(callback, *args, **kw) 44 45 def Notify(self): 46 self.GetCallback()() 47 33 48 class wxTimerSubject(wx.wxTimer): 34 49 def __init__(self, *args, **kw): 35 wx.wxTimer.__init__(self , *args, **kw)50 wx.wxTimer.__init__(self) 36 51 self.subject = Subject() 37 52 def Notify(self): trunk/RBSkinning/RBSkinning/xmlPython/inline.py
r266 r752 50 50 51 51 def GetCode(self): 52 content = self.Content() 53 trimWhitespace = '' 54 for each in content: 55 if reWhiteSpaceFromCode.match(each): 56 trimWhitespace = reWhiteSpaceFromCode.split(each)[1] 57 break 58 52 content = ['if True:\n','\n'] 53 content[1:1] = self.Content() 59 54 execCode = ''.join(content) 60 execCode = execCode.replace('\n' + trimWhitespace, '\n')61 execCode = execCode.replace('\r\n', '\n')62 execCode = execCode.replace('\r', '\n')63 if execCode[-1] != '\n': execCode += '\n'64 65 55 return execCode 66 56
