def fileslkt (event):
q=wx.FileDialog( None, message = u"Log", defaultDir = r"D:\!_work\", defaultFile = u"ntCOOR.TXT")
if q.ShowModal()==wx.ID_OK:
spath="r\"" + str(q.GetPath()) + "\""
dpath="r\"" + str(q.GetDirectory()) + "\\MaxFinder.txt\""
paths = [spath, dpath]
engine_launch(event)
return paths
return paths
#----
if globals().has_key('paths'): #проверка на существование переменной
print (paths[0])
print (paths[1])