problem importing python modules

ZIYAD A. M. AL-BATLY zamb at saudi.net.sa
Tue Jul 26 20:28:19 UTC 2005


On Tue, 2005-07-26 at 20:16 +0500, mustafa wrote:
> hi all.
> i am trying gui programming and this tutorial told me to
> import the some  modules these 2 GDK,libglade in particular
> are giving me a lot of trouble.
> i have installed every package i could find related to python and 
> libglade and GDK but i still can't import the modules.
> i tried google to download the modules myself but have failed
> to find a site.
> please help.
> 
When I want to write a PyGTK (with Glade) applications, I add these
lines:
        import os
        import gtk
        
        from SimpleGladeApp import SimpleGladeApp
        from SimpleGladeApp import bindtextdomain

What exactly is the error message you're seeing?
(I know you saw this link and you discussed it before, but I found it
very very helpful: "http://primates.ximian.com/~sandino/python-glade/".
Also, I'm not an expert, but I think you don't need to import GDK
explicitly as it's an integrated part of GTK.) 
Ziyad.




More information about the ubuntu-users mailing list