Re: Get the selected tab in a enthought traits application

2013-10-03 Thread petmertens
Here's the answer: from enthought.traits.api import HasTraits, Str, List, Button, Any from enthought.traits.ui.api import View, Item from enthought.traits.ui.api import ListEditor class A(HasTraits): StringA = Str view = View(Item('StringA')) class B(HasTraits): StringB = Str view

Re: Get the selected tab in a enthought traits application

2013-09-15 Thread shi
Any ideas? I think you will have more chance for an answer in a more specialized list, e.g. the enthought-dev mailing list, which is also accessible via gmane: http:// dir.gmane.org / gmane.comp.python.enthought.devel Stefaan. -- https://mail.python.org/mailman/listinfo/python-list

Get the selected tab in a enthought traits application

2013-09-13 Thread petmertens
Hi, I have a traits application with a tabbed group: Group( Group(label="a", dock='tab'), Group(label="b", dock='tab'), layout='tabbed') Beneath the tabbed group, there is button which should perform some action depending on the selected tab. So I would like to know which of both tabs, 'a' or '