[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: python2.2-gtk2



Phil wrote:

On Tue, Sep 17, 2002 at 10:38:02PM +0200, rrenard@free.fr wrote:
...
 File "./hello.py", line 5, in ?
   import gtk
ImportError: No module named gtk

vu d'ici :
apt-cache search python gtk module
-> python-gtk - GTK support module for Python.
j'ai oublié d'indiquer que j'utilise unstable


en fait je veux utiliser python-gtk2

dpkg -l me donne ceci pour les paquets python avant installation de python-gtk

ii python 2.2.1-12 An interactive object-oriented scripting lan
ii  python-apt     0.5.4.4        Python interface to libapt-pkg
ii  python-gtk2    1.99.13-2      Python bindings for the GTK+ widget set.
ii python2.1 2.1.3-10 An interactive object-oriented scripting lan
ii  python2.1-xmlb 2.1.3-10       XML support included in Python (v2.1)
ii python2.2 2.2.1-12 An interactive object-oriented scripting lan
ii  python2.2-gtk2 1.99.13-2      Python bindings for the GTK+ widget set.
ii  python2.2-xmlb 2.2.1-12       XML support included in Python (v2.2)

en essayant d'installer python-gtk, j'ai erreur différente


$ >./hello.py
Traceback (most recent call last):
 File "./hello.py", line 18, in ?
   window = gtk.Window(gtk.WINDOW_TOPLEVEL)
AttributeError: 'module' object has no attribute 'Window'

or window = gtk.Window(gtk.WINDOW_TOPLEVEL) correspond a un appel python-gtk2

en python-gtk c'est window = window = gtk_window_new(WINDOW_TOPLEVEL)


pour moi ca ressemble plus a un probleme de chemin de recherche des modules ou un truc du genre, mais je commence en python donc je connais pas trop.


merci



Reply to: