On Sun, 23 Feb 2003, Anthony Tekatch wrote:
> 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)
[...]
> 
> 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.

That'd be which python in bashland.

bash-2.05b$ which python
/usr/bin/python
bash-2.05b$ head -1 ~/CGFC/cgreports.py
#!/usr/bin/python

> 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:
[...]

Ah, herein lies the rub:

bash-2.05b$ python
Python 2.2.2 (#1, Jan  3 2003, 12:42:27) 
[GCC 2.95.4 20011002 (Debian prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygtk
>>> pygtk.require("2.0")
>>> import gtk
>>> help (gtk.TreeSelection)
Help on class TreeSelection in module gtk:
[...]

I guess I had an old pygtk lying around.  Removing that didn't take
anything else with it, but broke pygtk2:( Can't use python-gtk2 without
python-gtk (though it's not required in the dpkg), but if both python-gtk
and python-gtk2 are installed (in that order), it works if I require 2.0.

Grumpf.

-Lars

-- 
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| Hårdgrim of Numenor
"I do not agree with a word that you say, but I   |----------------------------
will defend to the death your right to say it."   | Where are we going, and
    --Evelyn Beatrice Hall paraphrasing Voltaire  | what's with the handbasket?
_______________________________________________
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