How to get ride of empty squares in wx.dataview.TreeListCtrl?

Gabrielle C <[email protected]> Wed, 13 Jun 2018 07:22:26 -0700 (PDT)
Newsgroups gmane.comp.python.wxpython.devel
Message-ID <[email protected]>
I am new at the library (and therefore in the group) so, I am sorry if I 
can't ask this here you can remove if not...

I asked the same question on stackoverflow but nobody answered, from what I 
saw the community i more engaged in forums and groups than in stack...

I am using the following code to create a TreeList:

tree = wx.dataview.TreeListCtrl(self, -1, style=wx.TR_DEFAULT_STYLE | \
                                        wx.TR_FULL_ROW_HIGHLIGHT | \
                                        wx.TR_EDIT_LABELS
tree.AppendColumn("Item Name")
node = tree.AppendItem(parent_node, text)

And for some reason there's an empty square (see image bellow)

[image: enter image description here] <https://i.stack.imgur.com/2VadP.png>

I even tried to add item as this:

node = tree.AppendItem(parent_node, text, wx.NO_IMAGE, wx.NO_IMAGE)

or

node = tree.AppendItem(parent_node, text)
tree.SetItemImage(node, wx.NO_IMAGE, wx.NO_IMAGE)

But none worked... any hint?

-- 
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.