On Sun, 23 Feb 2003 11:35:23 -0600, Lars Clausen <[EMAIL PROTECTED]> wrote:
> > Did you know that you can get
> > a list of each functions properties while in python like:
> > 
> > $ python
> >>>>import gtk
> >>>>help (gtk.TreeSelection)
> 
> Er, no, I didn't know that:
> 
> >>> import gtk
> >>> help (gtk.TreeSelection)
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> AttributeError: 'module' object has no attribute 'TreeSelection'
> >>> help (gtk.Widget)
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> AttributeError: 'module' object has no attribute 'Widget'


Are you sure that your PyGTK is installed in the right place and for the
version of Python that you are using from the command line. Type:
  whereis python
for more info.

Make sure you start up the same python that your PyGTK app is starting
from the first line of its script.


This is what I get when looking at the help in python.

$ python
Python 2.2.2 (#1, Jan 15 2003, 01:45:57) 
[GCC 3.2.1 20021207 (Red Hat Linux 8.0 3.2.1-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk
>>> help (gtk.TreeSelection)

Help on class TreeSelection in module gtk:

class TreeSelection(Object)
 |  Object GtkTreeSelection
 |  
 |  Signals from GObject:
 |    notify (GParam)
 |  
 |  Signals from GtkTreeSelection:
 |    changed ()

etc etc etc.



-- 
Anthony Tekatch
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to