Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

sucks and doesn work. Truthfuly, how do I require a specific version of PyGTK (or When do I need to use pygtk.require())?

PyGTK require sucks version
0
Posted

sucks and doesn work. Truthfuly, how do I require a specific version of PyGTK (or When do I need to use pygtk.require())?

0

It depends (doesn’t that always suck?). If you installed pygtk to a non-standard directory (i.e., not in your python installation’s site-packages directory), you will need to manually set pythonpath accordingly, and take care of python versions youself (checking pygtk_version, for instance). If you installed it into a standard directory, read below. We have now a concept of a `default pygtk version’. This is the version that you get if you do a simple ‘import gtk’ in Python. Precisely which is the default version varies: • If you are using a dual-install version of pygtk (faq 2.5) it depends on the contents of a file called pygtk.pth, which is installed into the python site-packages directory. It’s written there by the pygtk source tarball’s `make install’ target, so if you compile and install pygtk2 after pygtk0 the default will be pygtk2 and vice-versa. • If you are using an older version of pygtk, you will need to check pygtk_version yourself, noting that you won’t be able to select

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123