
I m using windows xp, i have installed python 2.4 and also pygtk....its working well. Now i need to install gtk so i have installed gtk run time environment for win 32. But problem is that i m unable to use gtk libraries as i type the command import gtk it gives error that no module name gtk found i think i have not make the refrence of gtk in python... can any one help me out my Python is installed in c:\Python2.4 and gtk in c:\GTK

On Wednesday 02 March 2005 07:14, Murtuza Ali wrote:
I m using windows xp, i have installed python 2.4 and also pygtk....its working well. Now i need to install gtk so i have installed gtk run time environment for win 32. But problem is that i m unable to use gtk libraries as i type the command import gtk it gives error that no module name gtk found i think i have not make the refrence of gtk in python... can any one help me out my Python is installed in c:\Python2.4 and gtk in c:\GTK
It's been a while since I've tried to get pygtk running on Windows. You need to set some enviornment variables. Follow the directions at: http://support.microsoft.com/default.aspx?scid=kb;en-us;310519&sd=tech and set the PATH environment variable so it includes both the lib and bin directory where gtk/pygtk is installed. HTH, Dave

I think your pygtk is not well done. Check in your site-packages if there is folder gtk-2.0, ¨inside is gtk and type import sys sys.path and in this list you must have path to gtk-2.0 folder. If not, the problem is as I said, in your pygtk installation. Hope it works gen2n ICQ 176015287 Murtuza Ali napsal(a):
I m using windows xp, i have installed python 2.4 and also pygtk....its working well. Now i need to install gtk so i have installed gtk run time environment for win 32. But problem is that i m unable to use gtk libraries as i type the command import gtk it gives error that no module name gtk found i think i have not make the refrence of gtk in python... can any one help me out my Python is installed in c:\Python2.4 and gtk in c:\GTK _______________________________________________ Edu-sig mailing list Edu-sig@python.org http://mail.python.org/mailman/listinfo/edu-sig
participants (3)
-
Dave Reed
-
gen2n
-
Murtuza Ali