In my source code I have:
import gtk
But when I run the script with python3 script.py command I get the following error. What package should I install to get it working?
Edit: my bad. here is the error:
ImportError: No module named gtk
Edit2: Thanks for the answer, kaizer.se. But I'm still getting an error message. Take a look at the following code: import pygtk, gtk pygtk.require('2.0')
def main():
win = gtk.Window(gtk.WINDOW_TOPLEVEL)
s = u"привет 한국"
win.set_title(s)
win.connect("destroy", gtk.main_quit)
win.show()
if __name__ == "__main__":
main()
gtk.main()
When I run this script I get the following error:
SyntaxError: Non-ASCII character '\xd0' in file basics.py on line 6, but no encoding declared; see python.org/peps/pep-0263.html for details
Any idea how I may solve this problem? Thanks.