Problems importing GDK

2019-05-25 07:48发布

问题:

I am trying to import GDK to my program however I continue to get an error

No module named GDK

Do you know how I can fix this? Since it was working before I already tried import gtk.GDK and import GDK.

I have installed PyGTK and PyGDK is part of of it pyGTK.

回答1:

Try:

import gtk.gdk

(note: small letters)