Reputation: 73
I'm a Windows developer and trying start PyGTK development. I want start with GTK+3 and folow this documentation.
My environment:
My code:
from gi.repository import Gtk
from gi.repository import GdkX11
Error:
ERROR:root:Could not find any typelib for GdkX11
Traceback (most recent call last):
File "C:\Program Files (x86)\JetBrains\PyCharm 3.1\helpers\pydev\pydevd.py", line 1534, in <module>
debugger.run(setup['file'], None, None)
File "C:\Program Files (x86)\JetBrains\PyCharm 3.1\helpers\pydev\pydevd.py", line 1145, in run
pydev_imports.execfile(file, globals, locals) #execute the script
File "C:\Program Files (x86)\JetBrains\PyCharm 3.1\helpers\pydev\_pydev_execfile.py", line 37, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc) #execute the script
File "Z:/git.repositories/gourmet-frontend/python/gourmet/main_gtk3.py", line 27, in <module>
from gi.repository import GdkX11
ImportError: cannot import name GdkX11
When I install pygi-aio-3.10.2-win32_rev18-setup.exe I choose all options and check to downgrade to GTK+ 3.8.9.
Upvotes: 1
Views: 977
Reputation: 57920
GdkX11
is a platform-dependent library and only available (as the name suggests) on X11 platforms. You won't find it on Windows and you'll have to use a replacement.
Upvotes: 2