Changeset 19855 in vbox for trunk/src/VBox/Main
- Timestamp:
- May 20, 2009 11:18:35 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/glue/vboxapi.py
r19852 r19855 50 50 class InterfacesWrapper: 51 51 def __init__(self): 52 self.__dict__['_rootFake'] = ConstantFake(None, None)52 self.__dict__['_rootFake'] = PlatformMSCOM.ConstantFake(None, None) 53 53 54 54 def __getattr__(self, a): … … 83 83 import pythoncom 84 84 import win32api 85 #win32com.client.gencache.EnsureDispatch('VirtualBox.Session') 85 self.constants = PlatformMSCOM.InterfacesWrapper() 86 win32com.client.gencache.EnsureDispatch('VirtualBox.Session') 86 87 87 88 def getSessionObject(self): 89 import win32com 88 90 from win32com.client import Dispatch 89 91 return win32com.client.Dispatch("{3C02F46D-C9D2-4f11-A384-53F0CF917214}") 90 92 91 93 def getVirtualBox(self): 94 import win32com 92 95 from win32com.client import Dispatch 93 96 return win32com.client.Dispatch("{3C02F46D-C9D2-4f11-A384-53F0CF917214}") 94 97 95 98 def getConstants(self): 96 return InterfacesWrapper()99 return self.constants 97 100 98 101 def getType(self):
Note:
See TracChangeset
for help on using the changeset viewer.