Re: Getting the number of lines (entries) in a textarea widget
"Tony Cappellini" <[email protected]>
| Newsgroups | gmane.comp.python.pythoncard |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> 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 > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/