Re: Getting the number of lines (entries) in a textarea widget
Phil Edwards <[email protected]>
| Newsgroups | gmane.comp.python.pythoncard |
|---|---|
| Message-ID | <[email protected]> |
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/