예제 #1
0
    def __init__(self, *args, **kwargs):
        tree.Tree.__init__(self, *args, **kwargs)
        COMObject.__init__(self)
        
        RegisterDragDrop(self.handle, byref(self._com_pointers_[0][1]))
        
        self.iml = comctl.ImageList(16, 16, ILC_COLOR32 | ILC_MASK, 0, 32)
        self.iml.AddIconsFromModule("shell32.dll", 16, 16, LR_LOADMAP3DCOLORS)
        self.iml.SetBkColor(gdi.CLR_NONE)
        self.SetImageList(self.iml)

        self.SetRedraw(0)
        item = comctl.TVITEMEX()
        item.text = "A root"
        item.image = 17
        item.selectedImage = 17
        item.children = 1
        hRoot = self.InsertItem(comctl.TVI_ROOT, comctl.TVI_ROOT, item)
        for i in range(100):
            item.mask = 0
            item.text = "A child %d" % i
            item.image = 3
            item.selectedImage = 4            
            hChild = self.InsertItem(hRoot, comctl.TVI_LAST, item)
        self.SetRedraw(1)
예제 #2
0
    def __init__(self, *args, **kwargs):
        tree.Tree.__init__(self, *args, **kwargs)
        COMObject.__init__(self)

        RegisterDragDrop(self.handle, byref(self._com_pointers_[0][1]))

        self.iml = comctl.ImageList(16, 16, ILC_COLOR32 | ILC_MASK, 0, 32)
        self.iml.AddIconsFromModule("shell32.dll", 16, 16, LR_LOADMAP3DCOLORS)
        self.iml.SetBkColor(gdi.CLR_NONE)
        self.SetImageList(self.iml)

        self.SetRedraw(0)
        item = comctl.TVITEMEX()
        item.text = "A root"
        item.image = 17
        item.selectedImage = 17
        item.children = 1
        hRoot = self.InsertItem(comctl.TVI_ROOT, comctl.TVI_ROOT, item)
        for i in range(100):
            item.mask = 0
            item.text = "A child %d" % i
            item.image = 3
            item.selectedImage = 4
            hChild = self.InsertItem(hRoot, comctl.TVI_LAST, item)
        self.SetRedraw(1)
예제 #3
0
    def __init__(self, *args, **kwargs):
        list.List.__init__(self, *args, **kwargs)
        COMObject.__init__(self)

        RegisterDragDrop(self.handle, byref(self._com_pointers_[0][1]))

        self.InsertColumns([("blaat", 100), ("col2", 150)])
        self.SetRedraw(0)
        for i in range(100):
            self.InsertRow(i, ["blaat %d" % i, "blaat col2 %d" % i])
        self.SetRedraw(1)
예제 #4
0
    def __init__(self, *args, **kwargs):
        list.List.__init__(self, *args, **kwargs)
        COMObject.__init__(self)

        RegisterDragDrop(self.handle, byref(self._com_pointers_[0][1]))

        self.InsertColumns([("blaat", 100), ("col2", 150)])
        self.SetRedraw(0)
        for i in range(100):
            self.InsertRow(i, ["blaat %d" % i, "blaat col2 %d" % i])
        self.SetRedraw(1)
예제 #5
0
 def __init__(self, *args, **kwargs):
     COMObject.__init__(self, *args, **kwargs)
예제 #6
0
 def __init__(self, *args, **kwargs):
     COMObject.__init__(self, *args, **kwargs)
예제 #7
0
파일: ole.py 프로젝트: TobiasRzepka/venster
 def __init__(self, dataFunc):
     COMObject.__init__(self)
     self.cfFormat = RegisterClipboardFormat(self._clipboard_format_)
     self.dataFunc = dataFunc
예제 #8
0
파일: ole.py 프로젝트: TobiasRzepka/venster
 def __init__(self, cfFormat):
     COMObject.__init__(self)
     self.cfFormat = cfFormat
     self.i = 0
예제 #9
0
 def __init__(self, pyObj, *args, **kwargs):
     COMObject.__init__(self, *args, **kwargs)
     self._disp_map_ = {}
     self.pyObj = pyObj
예제 #10
0
파일: ole.py 프로젝트: TobiasRzepka/venster
 def __init__(self, dataFunc):
     COMObject.__init__(self)
     self.cfFormat = RegisterClipboardFormat(self._clipboard_format_)
     self.dataFunc = dataFunc
예제 #11
0
파일: ole.py 프로젝트: TobiasRzepka/venster
 def __init__(self, cfFormat):
     COMObject.__init__(self)
     self.cfFormat = cfFormat
     self.i = 0