Пример #1
0
    def OnRightClick(self, event):
        path = self.GetFilePath()
        if not path: return

        # Open the popup menum then destroy it to avoid mem leak.
        popmenu = popupmenu_for_filename(self, path)
        self.PopupMenu(popmenu, event.GetPoint())
        popmenu.Destroy()
Пример #2
0
    def OnRightClick(self, event):
        path = self.GetFilePath()
        if not path: return

        # Open the popup menum then destroy it to avoid mem leak.
        popmenu = popupmenu_for_filename(self, path)
        self.PopupMenu(popmenu, event.GetPoint())
        popmenu.Destroy()
Пример #3
0
    def OnRightClick(self, event):
        currentItem = event.m_itemIndex

        if currentItem != -1:
            fd = self.id2filedata[self.file_list.GetItemData(currentItem)]
            # Open the popup menu then destroy it to avoid mem leak.
            menu = popupmenu_for_filename(self, fd.abspath)
            self.PopupMenu(menu, event.GetPoint())
            menu.Destroy()
Пример #4
0
    def OnRightClick(self, event):
        currentItem = event.m_itemIndex
        if currentItem == -1:
            return

        fd = self.id2filedata[self.file_list.GetItemData(currentItem)]
        # Open the popup menu then destroy it to avoid mem leak.
        menu = popupmenu_for_filename(self, fd.abspath)

        if menu is not None:
            self.PopupMenu(menu, event.GetPoint())
            menu.Destroy()