Exemplo n.º 1
0
    def __init__ (self, dlg=None, ctrl=None, resId=None):
        self.parent = dlg
        if not ctrl:
            if resId != None:
                ctrl = dlg.GetDlgItem(resId)
            else:
                ctrl = win32ui.CreateListCtrl()
        else:
            ctrl.SetWindowLong(win32con.GWL_STYLE, self.getStyle())
        window.Wnd.__init__(self, ctrl)
        self.hookMessages()
        self.popup = None
        self.selected = -1
        self._selListeners = []

        # drag support
        self._down = 0
##         self._dragging = 0

        # drag and drop callbacks map
        DropTarget.DropTargetProxy.__init__(self)
Exemplo n.º 2
0
 def __init__(self):
     DebuggerWindow.__init__(self, win32ui.CreateListCtrl())