Moshe Zadka writes:
 > 
 > As long as you're breaking things anyway, let me suggest one change:
 > have the "Gtk" prefix stripped from the classes' names (GtkText -> Text,
 > etc) and recommend that Gtk is imported via
 > 
 > import Gtk
 > 
 > And accesed via
 > 
 > Gtk.Text()
 > 
 > (Simillarily for Gnome/GnomeUI)
 > 
 > It seems much more Pythonic then
 > 
 > from gtk import *
 > 
 > GtkText()

I'm in 100% agreement - "import *" is kind of nasty.  I'd gladly
change code to get around this.  Also, the required edits could most
likely be automated, and if we really wanted we could make a module
"oldgtk" or something to ease the transitions:

oldgtk.py:
import Gtk
GtkText=Gtk.Text
...

Then people could do "from oldgtk import *" and have their old code
work.
-
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to