Remove a lot of unused imports

Signed-off-by: Daniel Narvaez <dwnarvaez@gmail.com>
This commit is contained in:
Daniel Narvaez 2013-04-03 22:01:15 +02:00
parent a3cda7c49f
commit db448c4eea
13 changed files with 1 additions and 19 deletions

View File

@ -1,6 +1,6 @@
from gi.repository import Gtk from gi.repository import Gtk
from sugar3.graphics.alert import Alert, TimeoutAlert from sugar3.graphics.alert import TimeoutAlert
def _destroy_cb(widget, data=None): def _destroy_cb(widget, data=None):
Gtk.main_quit() Gtk.main_quit()

View File

@ -3,8 +3,6 @@ from gi.repository import Gtk
from sugar3.graphics.radiopalette import RadioPalette, RadioMenuButton, \ from sugar3.graphics.radiopalette import RadioPalette, RadioMenuButton, \
RadioToolsButton RadioToolsButton
from sugar3.graphics.radiotoolbutton import RadioToolButton from sugar3.graphics.radiotoolbutton import RadioToolButton
from sugar3.graphics.toolbutton import ToolButton
from sugar3.graphics import style
window = Gtk.Window() window = Gtk.Window()

View File

@ -2,7 +2,6 @@ from gi.repository import Gtk
from sugar3.graphics.toolbutton import ToolButton from sugar3.graphics.toolbutton import ToolButton
from sugar3.graphics.toolbarbox import ToolbarBox, ToolbarButton from sugar3.graphics.toolbarbox import ToolbarBox, ToolbarButton
from sugar3.graphics import style
window = Gtk.Window() window = Gtk.Window()

View File

@ -21,13 +21,11 @@ from gi.repository import Gdk
from gi.repository import Gtk from gi.repository import Gtk
import gettext import gettext
from gi.repository import GConf from gi.repository import GConf
import logging
from sugar3.graphics.toolbutton import ToolButton from sugar3.graphics.toolbutton import ToolButton
from sugar3.graphics.toolbarbox import ToolbarButton from sugar3.graphics.toolbarbox import ToolbarButton
from sugar3.graphics.radiopalette import RadioPalette, RadioMenuButton from sugar3.graphics.radiopalette import RadioPalette, RadioMenuButton
from sugar3.graphics.radiotoolbutton import RadioToolButton from sugar3.graphics.radiotoolbutton import RadioToolButton
from sugar3.graphics.toolbox import Toolbox
from sugar3.graphics.xocolor import XoColor from sugar3.graphics.xocolor import XoColor
from sugar3.graphics.icon import Icon from sugar3.graphics.icon import Icon
from sugar3.bundle.activitybundle import ActivityBundle from sugar3.bundle.activitybundle import ActivityBundle

View File

@ -26,10 +26,8 @@ import os
import shutil import shutil
import tempfile import tempfile
import logging import logging
import warnings
from sugar3 import env from sugar3 import env
from sugar3 import util
from sugar3.bundle.bundle import Bundle, \ from sugar3.bundle.bundle import Bundle, \
MalformedBundleException, NotInstalledException MalformedBundleException, NotInstalledException
from sugar3.bundle.bundleversion import NormalizedVersion from sugar3.bundle.bundleversion import NormalizedVersion

View File

@ -32,7 +32,6 @@ from gi.repository import GdkPixbuf
from gi.repository import Rsvg from gi.repository import Rsvg
import cairo import cairo
from sugar3.graphics import style
from sugar3.graphics.xocolor import XoColor from sugar3.graphics.xocolor import XoColor
from sugar3.util import LRU from sugar3.util import LRU

View File

@ -27,7 +27,6 @@ from gi.repository import Gtk
from gi.repository import GObject from gi.repository import GObject
from gi.repository import Pango from gi.repository import Pango
from sugar3.graphics import palettegroup
from sugar3.graphics import animator from sugar3.graphics import animator
from sugar3.graphics import style from sugar3.graphics import style
from sugar3.graphics.icon import Icon from sugar3.graphics.icon import Icon

View File

@ -14,8 +14,6 @@
# along with this program; if not, write to the Free Software # along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
import logging
from gi.repository import GObject from gi.repository import GObject
from gi.repository import Gtk from gi.repository import Gtk
from gi.repository import Pango from gi.repository import Pango

View File

@ -26,7 +26,6 @@ import os
import logging import logging
from gi.repository import Gdk from gi.repository import Gdk
from gi.repository import Gtk
from gi.repository import Pango from gi.repository import Pango
from gi.repository import GConf from gi.repository import GConf

View File

@ -24,7 +24,6 @@ from gi.repository import GObject
from gi.repository import Gdk from gi.repository import Gdk
from gi.repository import GdkX11 from gi.repository import GdkX11
from gi.repository import Gtk from gi.repository import Gtk
import warnings
from sugar3.graphics.icon import Icon from sugar3.graphics.icon import Icon
from sugar3.graphics import palettegroup from sugar3.graphics import palettegroup

View File

@ -23,7 +23,6 @@ Test the sugar3.graphics.progressicon.ProgressIcon widget.
from gi.repository import GObject from gi.repository import GObject
from sugar3.graphics.progressicon import ProgressIcon from sugar3.graphics.progressicon import ProgressIcon
from sugar3.graphics.icon import Icon, get_surface
from sugar3.graphics import style from sugar3.graphics import style
import common import common

View File

@ -21,9 +21,6 @@ Spec in ticket #2999.
from gi.repository import Gtk from gi.repository import Gtk
from sugar3.graphics.palette import Palette
from sugar3.graphics.icon import Icon
import common import common
test = common.Test() test = common.Test()

View File

@ -17,7 +17,6 @@
# along with this program; if not, write to the Free Software # along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
import sys
import unittest import unittest
from sugar import mime from sugar import mime