Get rid of pygtk.require. It doesn't make a lot of sense

and recent apps are not using it anyway.
This commit is contained in:
Marco Pesenti Gritti 2006-07-16 17:25:32 +02:00
parent ca48a95ef1
commit 46d2f1c532
16 changed files with 8 additions and 36 deletions

View File

@ -1,5 +1,3 @@
import pygtk
pygtk.require('2.0')
import gtk
class AddressEntry(gtk.HBox):

View File

@ -1,8 +1,6 @@
import logging
import xml.sax.saxutils
import pygtk
pygtk.require('2.0')
import gtk
import geckoembed

View File

@ -1,5 +1,3 @@
import pygtk
pygtk.require('2.0')
import gtk
from gettext import gettext as _

View File

@ -1,5 +1,3 @@
import pygtk
pygtk.require('2.0')
import gtk
import gobject

View File

@ -2,8 +2,6 @@ import dbus
import random
import logging
import pygtk
pygtk.require('2.0')
import gtk
import gobject

View File

@ -1,7 +1,5 @@
import os
import pygtk
pygtk.require('2.0')
import gtk
from sugar.bots import Bot

View File

@ -1,5 +1,3 @@
import pygtk
pygtk.require('2.0')
import gtk
import gobject
import dbus

View File

@ -6,9 +6,9 @@ import dbus
import dbus.service
import dbus.glib
import pygtk
pygtk.require('2.0')
import gtk, gobject, pango
import gtk
import gobject
import pango
from sugar.chat.Emoticons import Emoticons
from sugar.chat.ChatToolbar import ChatToolbar

View File

@ -1,5 +1,3 @@
import pygtk
pygtk.require('2.0')
import gtk
from gettext import gettext as _

View File

@ -1,5 +1,3 @@
import pygtk
pygtk.require('2.0')
import gtk
from sugar.chat.Emoticons import Emoticons

View File

@ -1,8 +1,4 @@
#!/usr/bin/env python
import pygtk
import gobject
pygtk.require('2.0')
import gtk
import pango
import xml.sax

View File

@ -1,5 +1,3 @@
import pygtk
pygtk.require('2.0')
import gtk
from Sketch import Sketch

View File

@ -1,5 +1,3 @@
import pygtk
pygtk.require('2.0')
import gtk
import gobject

View File

@ -10,9 +10,8 @@ import StringIO
import binascii
import random
import pygtk
pygtk.require('2.0')
import gtk, gobject
import gtk
import gobject
def _stringify_sha(sha_hash):

View File

@ -1,9 +1,8 @@
import base64
import logging
import pygtk
pygtk.require('2.0')
import gtk, gobject
import gtk
import gobject
from sugar.p2p import Stream
from sugar.p2p import network

View File

@ -627,7 +627,7 @@ def runTests():
runner.run(suite)
def main():
import pygtk, gtk
import gtk
global ps
ps = PresenceService.get_instance()
ps.start()