forked from answer-huang/dSYMTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AHDropTarget.py
36 lines (30 loc) · 935 Bytes
/
AHDropTarget.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#coding=utf-8
__author__ = 'answer-huang'
import wx
import os
class AHDropTarget(wx.FileDropTarget):
def __init__(self, window):
wx.FileDropTarget.__init__(self)
self.window = window
def OnDropFiles(self, x, y, filenames):
self.fileList = []
for filename in filenames:
print os.path.basename(filename)
#TODO: 增加对dSYM文件的支持
if filename.endswith(('xcarchive', 'dSYM')):
self.fileList.append(filename)
self.window.filesList = self.fileList
self.window.ShowFileType()
#def OnEnter(self, x, y, z):
# print x, y, z
# print 'OnEnter x:%d, y:%d' % (x, y)
#
#def OnLeave(self):
# print 'leave windows'
#
#def OnDrop(self, x, y):
# print 'OnDrop x:%d, y:%d' % (x, y)
# print x, y
#
#def OnData(self, x, y, z):
# print 'OnData x:%d, y:%d' % (x, y)