'wxFileDialog'에 해당되는 글 1건

  1. wx파이썬 파일 열기 다이얼로그 (1) 2007/05/02

wx파이썬 파일 열기 다이얼로그

Posted at 2007/05/02 19:08// Posted in wxPython
import os
class TestApp(wx.App):
    def OnInit(self):
        dlg = wx.FileDialog(None, message="열기", defaultDir=os.getcwd(), defaultFile="", wildcard="*.xls", style=wx.OPEN | wx.MULTIPLE | wx.CHANGE_DIR)
        if dlg.ShowModal() == wx.ID_OK:
            print dlg.GetPath()
        return True

TestApp(redirect=False).MainLoop()
이올린에 북마크하기(0) 이올린에 추천하기(0)
2007/05/02 19:08 2007/05/02 19:08