I am new to Python and mac OS. I've Installed py27-pygtk-2.24.0_3
from macports
.
I tried to run the following:
#!/opt/local/bin/python2.7
import gtk
window=gtk.Window()
window.connect("destroy", gtk.main_quit)
button=gtk= gtk.Button("Hello")
window.add(button)
window.show_all()\gtk.main()
I am executing the file through Python Launcher and get this error:
Import error:No module named GTK
I spent the whole day searching for answer. Can someone help me and make it work?