This is the mail archive of the
mailing list for the Cygwin project.
Using PyGTK on Cygwin
- From: Ignazio Di Napoli <neclepsio at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 10 Jun 2007 11:48:01 +0200
- Subject: Using PyGTK on Cygwin
I'm a very newbie with Python: while I was looking for a way to add a
simple GUI to a bash script, I found PyGTK and it looked perfect for my aim.
So, I checked that Python and PyGTK were installed and updated through
Cygwin setup, and everything was fine.
I wrote this simple "hello world" script and tried to run:
#Global variable 'count' stores the number of button clicks
count = 0
count += 1
print "Hello again - the button was pressed: ", count, " time(s)."
window = gtk.Window()
button = gtk.Button("Press me")
It stops on the first line:
Traceback (most recent call last):
File "prova.py", line 1, in <module>
ImportError: No module named gtk
Can please anyone help me?
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html