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: Appending data to an excel sheet by python code

2013-09-14 Thread petmertens
Did you consider using xlrd and xlwt? I guess these package provide a solution to your problem. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python GUI?

2013-09-13 Thread petmertens
Enthought.traits !! http://code.enthought.com/projects/traits/ I started using traits a couple of months ago and I really like it. Traits provides a framework which creates a UI based on your data structures. Using some "hints" you can do anything you want. Just check out their website and try t

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 '