VirtualBox

Changeset 19855 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
May 20, 2009 11:18:35 AM (16 years ago)
Author:
vboxsync
Message:

Python: win wrapper

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/vboxapi.py

    r19852 r19855  
    5050    class InterfacesWrapper:
    5151            def __init__(self):
    52                 self.__dict__['_rootFake'] = ConstantFake(None, None)
     52                self.__dict__['_rootFake'] = PlatformMSCOM.ConstantFake(None, None)
    5353
    5454            def __getattr__(self, a):
     
    8383            import pythoncom
    8484            import win32api
    85             #win32com.client.gencache.EnsureDispatch('VirtualBox.Session')
     85            self.constants = PlatformMSCOM.InterfacesWrapper()
     86            win32com.client.gencache.EnsureDispatch('VirtualBox.Session')
    8687
    8788    def getSessionObject(self):
     89        import win32com
    8890        from win32com.client import Dispatch
    8991        return win32com.client.Dispatch("{3C02F46D-C9D2-4f11-A384-53F0CF917214}")
    9092
    9193    def getVirtualBox(self):
     94        import win32com
    9295        from win32com.client import Dispatch
    9396        return win32com.client.Dispatch("{3C02F46D-C9D2-4f11-A384-53F0CF917214}")
    9497
    9598    def getConstants(self):
    96         return InterfacesWrapper()
     99        return self.constants
    97100   
    98101    def getType(self):
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette