This may help:
1- Run this
Code: Select all
pkg-config --modversion cairo
2- Run this
Code: Select all
pkg-config --modversion gtk+-2.0
3- Then, install same version number of pygtk. If the installation process tells that the system needs another module, install it (it shuold give version numbers too).
Now, copy all the following to a text file (use Geany to check if was copied fine), and exec it by running 'python filename.py'.
Code: Select all
#!/usr/bin/python
import gtk
def on_button_clicked(*args):
print "Testing pygtk"
window = gtk.Window()
window.connect("delete_event", gtk.main_quit)
window.set_border_width(10)
button = gtk.Button("It works!")
button.connect("clicked", on_button_clicked)
window.add(button)
window.show_all()
gtk.main()
If u dont see this, something went wrong, try again. Pygtk installation from source should take some time, dont trust in it if was "fast" (check version numbers again)
Note that in latest puppies pygtk works without much issue, from the repository (if Lupu based, check ubuntu's deb, same goes for Slack pups).