I try to arrange it with add Spaces to Labels, but it's don't work, what is the
Trick?
<code>
if __name__ == '__main__':
import wx
import wx.lib.customtreectrl as ct
app= wx.PySimpleApp()
dialog= wx.Dialog( None )
ctree = ct.CustomTreeCtrl(dialog,
style=wx.TR_HAS_BUTTONS | wx.TR_HAS_VARIABLE_ROW_HEIGHT
> wx.TR_HIDE_ROOT | wx.TR_SINGLE
> ct.TR_AUTO_CHECK_CHILD | ct.TR_AUTO_CHECK_PARENT)
root = ctree.AddRoot('Root')
labels = ('First:', 'Second:', 'Third:', 'Fourths:', 'Fifth:')
for label in labels:
combobox = wx.ComboBox(ctree, style=wx.CB_READONLY)
combobox.SetItems(('a', 'b', 'c'))
ctree.AppendItem(root, label, wnd=combobox)
sizer= wx.BoxSizer()
sizer.Add(ctree, 1, wx.EXPAND)
dialog.Sizer = sizer
dialog.Show()
app.MainLoop()
</code>