Changeset 22357 in vbox for trunk/src/VBox/Main/glue
- Timestamp:
- Aug 19, 2009 9:32:54 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 51285
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/glue/vboxapi.py
r22305 r22357 218 218 win32com.client.gencache.EnsureDispatch('VirtualBox.Session') 219 219 win32com.client.gencache.EnsureDispatch('VirtualBox.VirtualBox') 220 win32com.client.gencache.EnsureDispatch('VirtualBox. VirtualBoxCallback')220 win32com.client.gencache.EnsureDispatch('VirtualBox.CallbackWrapper') 221 221 222 222 def getSessionObject(self, vbox): … … 261 261 str += " _typelib_version_ = 1, 0\n" 262 262 263 # generate capitalized version of callback s - that's how Python COM264 # looks them up on Windows263 # generate capitalized version of callback methods - 264 # that's how Python COM looks them up 265 265 for m in dir(impl): 266 266 if m.startswith("on"): … … 268 268 269 269 str += " def __init__(self): BaseClass.__init__(self, arg)\n" 270 str += "result = win32com.client.Dispatch('VirtualBox. VirtualBoxCallback')\n"271 str += "result.SetLocalObject( win32com.server.util.wrap("+iface+"Impl())\n"270 str += "result = win32com.client.Dispatch('VirtualBox.CallbackWrapper')\n" 271 str += "result.SetLocalObject("+iface+"Impl())\n" 272 272 exec (str,d,d) 273 273 return d['result'] … … 330 330 331 331 def initPerThread(self): 332 pass 332 import xpcom 333 xpcom._xpcom.AttachThread() 333 334 334 335 def deinitPerThread(self): 335 pass 336 import xpcom 337 xpcom._xpcom.DetachThread() 336 338 337 339 def createCallback(self, iface, impl, arg):
Note:
See TracChangeset
for help on using the changeset viewer.