Discussion:
wx.TreeControl not visible on OS X
Chris Norman
2014-10-06 20:42:05 UTC
Permalink
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,
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Robin Dunn
2014-10-07 07:01:52 UTC
Permalink
Post by Chris Norman
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
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Chris Norman
2014-10-07 08:22:59 UTC
Permalink
Post by Robin Dunn
Post by Chris Norman
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,
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Werner
2014-10-07 09:07:26 UTC
Permalink
Hi Chris,

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

...
Post by Chris Norman
Post by Robin Dunn
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
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Robin Dunn
2014-10-14 00:06:45 UTC
Permalink
Post by Chris Norman
Post by Robin Dunn
Post by Chris Norman
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Chris Norman
2014-10-19 20:39:58 UTC
Permalink
Hehe, yeah, I stumbled across them when I finally hit the demo!

Cheers,
Post by Robin Dunn
Post by Chris Norman
Post by Robin Dunn
Post by Chris Norman
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.
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...