From: Kevin A. <al...@se...> - 2007-11-15 15:17:56
|
On Nov 14, 2007, at 11:20 PM, 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 ? > > > thanks self.components.yourComponentNameHere.getNumberOfLines() should work. If it doesn't, then I would like to know what the line endings are as well as which platform and versions of wxPython and PythonCard you're using. If you end up using a List component instead then getCount() is the method you want. ka |