본문 바로가기

Programming/Python_Etc

wxpython 폴더 트리

반응형
import wx

class TestFrame(wx.Frame):
    def __init__(self, parent):
        wx.Frame.__init__(self, parent, -1, 'test', size=(500,700))

        dir3 = wx.GenericDirCtrl(self, -1, 
                        dir='C:/Television',
                                 style=wx.DIRCTRL_SHOW_FILTERS |
                                       wx.DIRCTRL_3D_INTERNAL |
                                       wx.DIRCTRL_MULTIPLE,
                                 filter="Python files (*.py)|*.py")

app = wx.App()

frm = TestFrame(None)
frm.Show()
app.MainLoop()

반응형