Can't get GTK to work

Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Oct 2004
Posts: 4,126
Reputation: vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice 
Solved Threads: 946
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
DaniWeb's Hypocrite

Can't get GTK to work

 
0
  #1
Nov 28th, 2005
I am still trying to take a look at the gtk GUI package and reinstalled the following:
gtk-win32-devel-2.8.6-rc3.exe
and
pygtk-2.8.2-1.win32-py2.4.exe (updated version)

I have it down to a simpler error message now. Here are my warnings and errors with the sample file base.py
  1. Traceback (most recent call last):
  2. File "D:/Python24/Atest/Demo/pyGTK/base.py", line 7, in ?
  3. import gtk
  4. File "D:\Python24\Lib\site-packages\gtk-2.0\gtk\__init__.py", line 37, in ?
  5. from _gtk import *
  6. ImportError: DLL load failed: The specified procedure could not be found.
Also an error box comes up ...
  1. The procedure entry point gdk_cairo_create could not be located in the dynamic link library libgdk=win32-2.0-0.dll
Here is the code for the small sample file from the gtk docs ...
  1. #!/usr/bin/env python
  2.  
  3. # example base.py
  4.  
  5. import pygtk
  6. pygtk.require('2.0')
  7. import gtk
  8.  
  9. class Base:
  10. def __init__(self):
  11. self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
  12. self.window.show()
  13.  
  14. def main(self):
  15. gtk.main()
  16.  
  17. print __name__
  18. if __name__ == "__main__":
  19. base = Base()
  20. base.main()
Does anybody have ideas?
I have a Windows XP box and use Python24.
Last edited by vegaseat; Dec 11th, 2005 at 11:31 am.
May 'the Google' be with you!
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 1,221
Reputation: bumsfeld will become famous soon enough bumsfeld will become famous soon enough 
Solved Threads: 138
bumsfeld's Avatar
bumsfeld bumsfeld is offline Offline
Nearly a Posting Virtuoso

Re: Can't get GTK to work

 
0
  #2
Dec 27th, 2005
Maybe GTK is only for Linux?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Python Forum


Views: 3576 | Replies: 1
Thread Tools Search this Thread



Tag cloud for Python
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC