Skip to content

Instantly share code, notes, and snippets.

@daybreak0804
Created July 14, 2016 12:27
Show Gist options
  • Save daybreak0804/377a88d720c013dc537b78401f3a9fa0 to your computer and use it in GitHub Desktop.
Save daybreak0804/377a88d720c013dc537b78401f3a9fa0 to your computer and use it in GitHub Desktop.
wxPython으로 여러개 파일 경로 가져오기
import wx
import os
app = wx.PySimpleApp()
wildcard = "Python source (*.py)|*.py|" \
"Compiled Python (*.pyc)|*.pyc|" \
"All files (*.*)|*.*"
dialog = wx.FileDialog(None, "Choose a file", os.getcwd(), "", wildcard, wx.MULTIPLE)
if dialog.ShowModal() == wx.ID_OK:
print dialog.GetPaths()
dialog.Destroy()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment