Re: wx.tree

Nathan smith <[email protected]>
Newsgroups gmane.comp.python.wxpython
Message-ID <[email protected]>
So I figured out what the problem was.

I had:

wxTreeCtrl(self,

rather than wx.TreeCtrl(panel,

Oopsies!


I'm doing a conversion from wx.listctrl to wx.treectrl for this project, 
and admit I'm stuck on these two points:

1. How do you verify an item is selected? In listctrl this would be 
if(self.list.GetFocusedItem()!=-1)

But that produces an error in treectrl

and 2, how do you retrieve the focused item?

Any help appreciated.

Nathan

On 21/10/2019 12:46, Nathan smith wrote:
> Hi there,
>
> I'm recently working with wx.treeCtrl, and feel like I am missing 
> something obvious.
>
> I'd like users to be able to tab out of the tree view, has I have a 
> number of buttons on the screen, and my users can not use the mouse.
>
> Unfortunately, the styles I am using are not allowing this.
>
> I've tried binding an event_char to the tree view but to little effect.
>
> Am I missing a style?
>
> Is there a work around?
>
> Thanks
>
> Nathan
>

-- 
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/6e96cb58-2990-ce98-addd-09ab1076f199%40gmail.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.