How to arrange Ctrls in CustomTreeCtrl?

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>

Hi,

I try to arrange it with add Spaces to Labels, but it's don't work, what is the
Trick?

There is no trick, unfortunately there is nothing you can do at the
moment to align vertically all the windows attached to the tree items,
but as it is the second time I get this request, I will implement it
as some kind of new style in CustomTreeCtrl, something like
CT.TR_ALIGN_WINDOWS in the __init__ constructor in CustomTreeCtrl.

I am also looking into the other issue you pointed out regarding ComboCtrl.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

···

On Fri, Oct 17, 2008 at 11:16 AM, Ur wrote: