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 import gtk
class AddressEntry(gtk.HBox): class AddressEntry(gtk.HBox):

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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