wx.TreeControl not visible on OS X

Hiya all,
I'm trying to use a wx.TreeControl control, and it's working fine on windows, but on OS X it isn't visible to VoiceOver.

I'm using exactly the same code, which is the standard wx.Frame, override __init__, add a panel, add the control to the panel, add to a sizer, etc, but VoiceOver is acting as if the tree control isn't there.

Is this control just not fully supported, and I should find another which suits my needs?

Cheers,

Chris Norman wrote:

Hiya all,
I'm trying to use a wx.TreeControl control, and it's working fine on
windows, but on OS X it isn't visible to VoiceOver.

I'm using exactly the same code, which is the standard wx.Frame,
override __init__, add a panel, add the control to the panel, add to a
sizer, etc, but VoiceOver is acting as if the tree control isn't there.

Is this control just not fully supported, and I should find another
which suits my needs?

wx.TreeCtrl is not a native control on OSX, it uses a generic implementation and so to things like VoiceOver don't know what to do with it. OTOH, the DataViewCtrl is native on OSX (and GTK) so you could probably get it working with that class. There is also a convenience class DataViewTreeCtrl which will help you use it similarly to wx.TreeCtrl.

···

--
Robin Dunn
Software Craftsman

Chris Norman wrote:

Hiya all,
I'm trying to use a wx.TreeControl control, and it's working fine on
windows, but on OS X it isn't visible to VoiceOver.

I'm using exactly the same code, which is the standard wx.Frame,
override __init__, add a panel, add the control to the panel, add to a
sizer, etc, but VoiceOver is acting as if the tree control isn't there.

Is this control just not fully supported, and I should find another
which suits my needs?

wx.TreeCtrl is not a native control on OSX, it uses a generic implementation and so to things like VoiceOver don't know what to do with it. OTOH, the DataViewCtrl is native on OSX (and GTK) so you could probably get it working with that class. There is also a convenience class DataViewTreeCtrl which will help you use it similarly to wx.TreeCtrl.

Hi,
I tried to use that data view thingy, but it said there was no such control on my system.

I am using wx version 3.0.0.0 msw (classic) under windows 8, and version 3.0.1.1 osx-cocoa (classic) under OS X 10.9.

When I found this control on the web last night, it mentioned WX version 3.0.1.something, but there doesn't seem to be a windows installer available for that version, and clearly my home brewed version of wxmac doesn't have it.

Any ideas?

Cheers,

···

On 07/10/2014 08:01, Robin Dunn wrote:

Hi Chris,

...

wx.TreeCtrl is not a native control on OSX, it uses a generic implementation and so to things like VoiceOver don't know what to do with it. OTOH, the DataViewCtrl is native on OSX (and GTK) so you could probably get it working with that class. There is also a convenience class DataViewTreeCtrl which will help you use it similarly to wx.TreeCtrl.

Hi,
I tried to use that data view thingy, but it said there was no such control on my system.

I am using wx version 3.0.0.0 msw (classic) under windows 8, and version 3.0.1.1 osx-cocoa (classic) under OS X 10.9.

The 'dvc' DataViewCtrl have been added in the 2.9 series of wxPython so they should be there in 3.0 on all platforms. Maybe check the wxPython demo under 'dvc' and see there how to use them.

Werner

···

On 10/7/2014 10:22, Chris Norman wrote:

Chris Norman wrote:

Chris Norman wrote:

Hiya all,
I'm trying to use a wx.TreeControl control, and it's working fine on
windows, but on OS X it isn't visible to VoiceOver.

I'm using exactly the same code, which is the standard wx.Frame,
override __init__, add a panel, add the control to the panel, add to a
sizer, etc, but VoiceOver is acting as if the tree control isn't there.

Is this control just not fully supported, and I should find another
which suits my needs?

wx.TreeCtrl is not a native control on OSX, it uses a generic
implementation and so to things like VoiceOver don't know what to do
with it. OTOH, the DataViewCtrl is native on OSX (and GTK) so you
could probably get it working with that class. There is also a
convenience class DataViewTreeCtrl which will help you use it
similarly to wx.TreeCtrl.

Hi,
I tried to use that data view thingy, but it said there was no such
control on my system.

The data view classes are in the wx.dataview module.

···

On 07/10/2014 08:01, Robin Dunn wrote:

--
Robin Dunn
Software Craftsman

Hehe, yeah, I stumbled across them when I finally hit the demo!

Cheers,

···

On 14 Oct 2014, at 01:06, Robin Dunn robin@alldunn.com wrote:

Chris Norman wrote:

On 07/10/2014 08:01, Robin Dunn wrote:

Chris Norman wrote:

Hiya all,
I’m trying to use a wx.TreeControl control, and it’s working fine on
windows, but on OS X it isn’t visible to VoiceOver.

I’m using exactly the same code, which is the standard wx.Frame,
override init, add a panel, add the control to the panel, add to a
sizer, etc, but VoiceOver is acting as if the tree control isn’t there.

Is this control just not fully supported, and I should find another
which suits my needs?

wx.TreeCtrl is not a native control on OSX, it uses a generic
implementation and so to things like VoiceOver don’t know what to do
with it. OTOH, the DataViewCtrl is native on OSX (and GTK) so you
could probably get it working with that class. There is also a
convenience class DataViewTreeCtrl which will help you use it
similarly to wx.TreeCtrl.

Hi,
I tried to use that data view thingy, but it said there was no such
control on my system.

The data view classes are in the wx.dataview module.


Robin Dunn
Software Craftsman
http://wxPython.org


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 wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.