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

Traceback (most recent call last):
  File "D:/Python24/Atest/Demo/pyGTK/base.py", line 7, in ?
    import gtk
  File "D:\Python24\Lib\site-packages\gtk-2.0\gtk\__init__.py", line 37, in ?
    from _gtk import *
ImportError: DLL load failed: The specified procedure could not be found.

Also an error box comes up ...

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 ...

#!/usr/bin/env python

# example base.py

import pygtk
pygtk.require('2.0')
import gtk

class Base:
    def __init__(self):
        self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
        self.window.show()

    def main(self):
        gtk.main()

print __name__
if __name__ == "__main__":
    base = Base()
    base.main()

Does anybody have ideas?
I have a Windows XP box and use Python24.

Maybe GTK is only for Linux?

I'm trying to do the exact same code and think I have to add the GTK bin and sub folders to the system path. I'm going to try this when i get home later. This website has instructions on how to add a folder to the system path. I'm not sure but maybe you need to add a file named __init__ to each folder?

http://www.mathworks.com/support/solutions/en/data/1-15ZLK/index.html

Also, GTK is not for linux only, but most of the literature is written by and for linux users.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.