[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: pygtk transition 1.2 -> 2



On Fri, 2003-08-08 at 18:40, Sebastien Bacher wrote:
> For the moment the default python bindings for gtk/gnome are 1.2
> version. It means that an "import gtk" in a .py will load gtk1.2.
> 
> It's time to switch gtk/gnome 2 as the default bindings. 
> So all pygtk/gnome 1.2 programs have to use these two lines before
> loading a gtk/gnome part:
> 
> import pygtk
> pygtk.require('1.2')

Will this also cover using gnome 1 bindings instead of gnome 2?

I assume that just prepending the above two lines to something like the
following should work?

from gtk import *
import _gtk
import _gnome
import _gnomeui
from gnome.ui import *
import gnome.config

-- 
Joe Drew <hoserhead@woot.net> <drew@debian.org>

My weblog doesn't detail my personal life: http://me.woot.net



Reply to: