Problems importing GDK

南楼画角 提交于 2019-12-22 18:28:38

问题


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)



来源:https://stackoverflow.com/questions/5923746/problems-importing-gdk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!