开发者

Auto resize columns in TreeListCtrl

I create a tree control:

self.tree_cat = wx.gizmos.TreeListCtrl(self, -1, style=some-styles)

Then I add columns:

self.tree_cat.AddColumn("blah")
self.tree_cat.AddColumn("blah")

Now how do I make the columns au开发者_如何学JAVAto-resize when I add elements?


The way you should be able do this is to use the wx.lib.mixins.listctrl.ListCtrlAutoWidthMixin as a mixin class for the wx.TreeListCtrl.

But apparently there's a bug with it currently.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜