擅长:python、mysql、java
<p>我认为<a href="http://www.wxpython.org/docs/api/wx.GenericDirCtrl-class.html" rel="nofollow noreferrer">GenericDirCtrl</a>小部件可能对您有用。<a href="http://wiki.wxpython.org/AnotherTutorial" rel="nofollow noreferrer">This tutorial</a>有很多例子,其中包括在完整脚本(下面粘贴的屏幕截图)中简单使用该小部件。我强烈建议不要从wxGlade开始,而是手动布局前几个wxgui(使用适当的大小)。你会从中学到很多。</p>
<p><img src="https://wiki.wxpython.org/AnotherTutorial?action=AttachFile&do=get&target=dragdrop.png" alt="alt text"/></p>