Exemplo n.º 1
0
def main():
    root = HLIRoot("COM Browser")
    if "app" in sys.modules:
        # do it in a window
        browser.MakeTemplate()
        browser.template.OpenObject(root)
    else:
        #               list=hierlist.HierListWithItems( root, win32ui.IDB_BROWSER_HIER )
        #               dlg=hierlist.HierDialog("COM Browser",list)
        dlg = browser.dynamic_browser(root)
        dlg.DoModal()
Exemplo n.º 2
0
def main():
    from pywin.tools import hierlist
    root = HLIRoot("COM Browser")
    if sys.modules.has_key("app"):
        # do it in a window
        browser.MakeTemplate()
        browser.template.OpenObject(root)
    else:
        #		list=hierlist.HierListWithItems( root, win32ui.IDB_BROWSER_HIER )
        #		dlg=hierlist.HierDialog("COM Browser",list)
        dlg = browser.dynamic_browser(root)
        dlg.DoModal()
Exemplo n.º 3
0
def main(modal=False):
    from pywin.tools import hierlist
    root = HLIRoot("COM Browser")
    if "app" in sys.modules:
        # do it in a window
        browser.MakeTemplate()
        browser.template.OpenObject(root)
    else:
        #               list=hierlist.HierListWithItems( root, win32ui.IDB_BROWSER_HIER )
        #               dlg=hierlist.HierDialog("COM Browser",list)
        dlg = browser.dynamic_browser(root)
        if modal:
            dlg.DoModal()
        else:
            dlg.CreateWindow()
            dlg.ShowWindow()