From: Tony C. <cap...@gm...> - 2007-11-15 17:52:00
|
I had posted a question a few days ago- regarding Which Text widget to use. I need a widget with a scroll bar because the list is likely to be larger that the space for the widget. I believe the list widget doesn't have a scroll bar, that's why I'm using the TexArea widget On Nov 15, 2007 1:25 AM, Phil Edwards <ph...@li...> wrote: > > Tony Cappellini wrote: > > I've printed a list of filenames in a textarea widget. > > > > I want to see how many filenames are in the widget. > > > > When I call GetNumberOfLines() or getNumberOfLines(), they both return 1. > > > > Is there a way to query the widget to actually get the number of items printed ? > > > > If you're using a textarea to store a list, wouldn't it be simpler to > just use a list widget instead? Then just make a call to > len(self.components.listName.items) to find out how many are in there. > > -- > > Regards > > Phil Edwards > Brighton, UK > |