|
|
Subject: [libglade+win32] Python cannot import libglade - msg#00145
List: gnome.gtk+.python
I have a problem in windows 2k with python and libglade.
when I import libglade and I start the program, I receive this error :
/N:\python\test\pContact>python pCon
Traceback (most recent call last):
File "pContact.py", line 3, in ?
import gtk
import libglade
ImportError: No module named glade
/
I installed the GTK developpement package, I copy the file in the
libglade zip file into the python directory Lib
(from http://gladewin32.sourceforge.net/)
I set the python path in my path var.
If there any document/tutorial/hint to help me, that will be appreciated
Thank you
_______________________________________________
pygtk mailing list pygtk@xxxxxxxxxx
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
Re: easy hyperlink builder (email-http link)
David Eriksson wrote:
On Sun, 2004-12-26 at 12:33 -0500, Francis Lavoie wrote:
Is there an easy way to put mail link and http link on a textlabel?
I use pango markup like this : <span foreground="#000099"
underline="single" weight="bold">francis@xxxxxxxxxx</span>
but it's not automaticly clickable to open the default mail-client.
And it is not theme-friendly
Is there another way to go that I mist?
Use a GnomeHRef widget? I still had to use pango makeup to make it look
like a clickable link, though:
label = self.href.get_child()
label.set_text("<span foreground=\"blue\" underline=\"single\">" +
label.get_text() + "</span>")
label.set_use_markup(True)
Ok, I'm quite new to graphical programming. I tried that solution, but
if I call the label from my glade object it doesn't work. So I guest I
have more reading to do. I will pass through the tutorial and keep your
answer in my note to use it in my program.
Thank you
_______________________________________________
pygtk mailing list pygtk@xxxxxxxxxx
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
Next Message by Date:
click to view message preview
CellRendererCombo example?
Hi,
Can any one give an example of CellRendererCombo usage?
Thanks,
Baiju M
_______________________________________________
pygtk mailing list pygtk@xxxxxxxxxx
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
Previous Message by Thread:
click to view message preview
Using Combox Box
I am very, very pleased with my first use of the ComboxBoxEntry in pygtk,
so I want to try it again, but this time, with a little more work. I
want the source of the strings to be a database, and I would ideally want
those strings to be completely refreshed every time the list is popped
down.
I am probably wrong, but I figured that the way to do this would be to get
to the button widget part of things, and look for a 'pressed' signal. I
can't figure out how to get the button widget, though ... the 'child'
attribute gets you the Entry widget, not the button (which I did use, in
my first attempt, and that worked great).
Can I get some help in doing the task I want to accomplish? Should I
perhaps not go after that button? Or, how would I detect that the popdown
list is about to pop down?
Thanks
----------------------------------------------------------------------------
Chuck Robey | Interests include C & Java programming, FreeBSD,
chuckr@xxxxxxxxxx | electronics, communications, and SF/Fantasy.
New Year's Resolution: I will not sphroxify gullible people into looking up
fictitious words in the dictionary (on the wall at my old fraternity,
Signa Phi Nothing).
----------------------------------------------------------------------------
_______________________________________________
pygtk mailing list pygtk@xxxxxxxxxx
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
Next Message by Thread:
click to view message preview
Re: [libglade+win32] Python cannot import libglade
Francis Lavoie wrote:
I have a problem in windows 2k with python and libglade.
when I import libglade and I start the program, I receive this error :
/N:\python\test\pContact>python pCon
Traceback (most recent call last):
File "pContact.py", line 3, in ?
import gtk
import libglade
ImportError: No module named glade
/
I installed the GTK developpement package, I copy the file in the
libglade zip file into the python directory Lib
(from http://gladewin32.sourceforge.net/)
I set the python path in my path var.
If there any document/tutorial/hint to help me, that will be appreciated
1. Remove all previous installations of GTK+ and pygtk. That means GTK+
from gladewin32, dropline, Dev-Cpp, gimp, gaim, you name it... Then
carefully look in Windows\system32 for any GTK+-related leftover DLLs,
in particular iconv.dll, libintl.dll, libxml2.dll, intl-1.dll and all
the libg*.dll and g*.dll with a GTK+ name (gobject, gthread, atk, pango,...)
2. Install the GTK+ runtime from gladewin32
http://prdownloads.sourceforge.net/gladewin32/gtk-win32-2.4.14-rc1.exe?download
Make sure that the "Register environment variable" is selected (this
should be the default)
3. Run the Gtk-demo (Start menu/Gtk/Gtk-demo). Does it work ? If no,
please post the error message in this thread.
4. Try to run a simple helloworld example
http://www.pcpm.ucl.ac.be/~gustin/win32_ports/binaries/helloworld.zip
Unzip helloworld.exe and double-click on it (no need to open a console).
Does it work ? If no, please post the error message in this thread.
5. Install pygtk-2.4
http://www.pcpm.ucl.ac.be/~gustin/win32_ports/
6. From python (command line, python ide, pythonwin), try "import pygtk"
and "import gtk"
7. Download the pygtk tarball
http://ftp.gnome.org/pub/GNOME/sources/pygtk/2.4/pygtk-2.4.1.tar.gz
Untar it and try to run examples/pygtk-demo/pygtk-demo.py. It should
work out of the box. Report any problem.
In a regular installation, only steps 2 and 5 should be required. i have
tested that config on 20+ machines without any problem.
Cedric
_______________________________________________
pygtk mailing list pygtk@xxxxxxxxxx
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
|
|