我是wxPython的新手。有没有人可以帮我:
如何在框架/面板上添加多个TreeListCtrl,如下所示:
First TreeListCtrl
show the tree and its child
Second TreeListCtrl
show the tree and its child
Third TreeListCtrl
show the tree and its child
其次,在wxPython中实现TreeList(如下图所示的黑色边框)之类的TreeListCtrl的最佳方式是什么?我需要自定义默认的wxPython TreeListCtrl吗?
我正在使用wxPython制作图形用户界面。目前我有一个菜单栏和三个面板。当我单击一个按钮时,我希望在第二个面板中显示一个网格。然而。当我点击按钮时,我得到的只是一个灰色的小矩形。
下面是按钮的代码:
self.Bind(wx.EVT_BUTTON, self.OnCo, id=self.submit.GetId())
下面是单击按钮时"OnCo“事件的代码:
def OnCo(self, e):
#to get rid of stuff that was previously in the panel
for child in self.panel2.GetChil