sucks and doesn work. Truthfuly, how do I require a specific version of PyGTK (or When do I need to use pygtk.require())?
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
- Are there any parts of WeMeeting Enterprise IM that are not included under the free license version and require extra payment to get?
- sucks and doesn work. Truthfuly, how do I require a specific version of PyGTK (or When do I need to use pygtk.require())?
- What version of the BlackBerry OS does Viira require?