InterviewSolution
| 1. |
If I Installed Pygtk-0 And Pygtk-2 In Parallel (using Pygtk.pth) How Do I Indicate Which One My Script Should Use? |
|
Answer» The new versions of PyGTK provide a pygtk module in which you can call a method require() that allows you to REQUEST one VERSION or the other: pygtk.require("1.2") # for pygtk-0 and pygtk.require("2.0") # for pygtk2 NOTE that you should do this before importing the gtk or gnome modules: # To require 2.0 or: # To require 1.2 The new versions of PyGTK provide a pygtk module in which you can call a method require() that allows you to request one version or the other: pygtk.require("1.2") # for pygtk-0 and pygtk.require("2.0") # for pygtk2 Note that you should do this before importing the gtk or gnome modules: # To require 2.0 or: # To require 1.2 |
|