[gnome-games/gnome-3-0] sudoku: Fix imports



commit 0e1436a653861fd1ea7afd587e043f36bd461e5b
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date:   Mon Apr 4 20:39:51 2011 +0200

    sudoku: Fix imports

 gnome-sudoku/src/lib/dancer.py        |    3 +--
 gnome-sudoku/src/lib/game_selector.py |    3 +--
 gnome-sudoku/src/lib/gsudoku.py       |    3 +--
 gnome-sudoku/src/lib/main.py          |    4 +---
 gnome-sudoku/src/lib/number_box.py    |    4 +---
 gnome-sudoku/src/lib/timer.py         |    2 +-
 6 files changed, 6 insertions(+), 13 deletions(-)
---
diff --git a/gnome-sudoku/src/lib/dancer.py b/gnome-sudoku/src/lib/dancer.py
index 2ae5c8f..a585c28 100644
--- a/gnome-sudoku/src/lib/dancer.py
+++ b/gnome-sudoku/src/lib/dancer.py
@@ -1,6 +1,5 @@
 # -*- coding: utf-8 -*-
-from gi.repository import Gtk
-import gobject
+from gi.repository import Gtk,GObject
 import colors
 
 class GridDancer:
diff --git a/gnome-sudoku/src/lib/game_selector.py b/gnome-sudoku/src/lib/game_selector.py
index e7d8996..14c0cb0 100644
--- a/gnome-sudoku/src/lib/game_selector.py
+++ b/gnome-sudoku/src/lib/game_selector.py
@@ -1,6 +1,5 @@
 # -*- coding: utf-8 -*-
-from gi.repository import Gtk
-import gobject
+from gi.repository import Gtk,GObject
 import os.path
 import sudoku, saver, sudoku_maker
 import sudoku_thumber
diff --git a/gnome-sudoku/src/lib/gsudoku.py b/gnome-sudoku/src/lib/gsudoku.py
index 6135e7d..aafdfb2 100644
--- a/gnome-sudoku/src/lib/gsudoku.py
+++ b/gnome-sudoku/src/lib/gsudoku.py
@@ -1,6 +1,5 @@
 # -*- coding: utf-8 -*-
-from gi.repository import Gtk
-import gobject
+from gi.repository import Gtk,GObject
 import colors
 import math
 import random
diff --git a/gnome-sudoku/src/lib/main.py b/gnome-sudoku/src/lib/main.py
index 66d27a9..38542b0 100644
--- a/gnome-sudoku/src/lib/main.py
+++ b/gnome-sudoku/src/lib/main.py
@@ -5,9 +5,7 @@ import threading
 import gi
 gi.require_version("Gtk", "3.0")
 
-import gobject
-from gi.repository import Gtk
-from gi.repository import Pango
+from gi.repository import Gtk,GdkPixbuf,GObject,Pango
 from gettext import gettext as _
 from gettext import ngettext
 
diff --git a/gnome-sudoku/src/lib/number_box.py b/gnome-sudoku/src/lib/number_box.py
index a47937f..052d8b9 100644
--- a/gnome-sudoku/src/lib/number_box.py
+++ b/gnome-sudoku/src/lib/number_box.py
@@ -1,9 +1,7 @@
 # -*- coding: utf-8 -*-
 #!/usr/bin/python
 
-from gi.repository import Gtk
-import gobject
-from gi.repository import Pango
+from gi.repository import Gtk,GObject,Pango
 import cairo
 import math
 import tracker_info
diff --git a/gnome-sudoku/src/lib/timer.py b/gnome-sudoku/src/lib/timer.py
index c94656f..c02f0ca 100644
--- a/gnome-sudoku/src/lib/timer.py
+++ b/gnome-sudoku/src/lib/timer.py
@@ -1,5 +1,5 @@
 # -*- coding: utf-8 -*-
-import gobject
+from gi.repository import GObject
 import time
 
 class ActiveTimer (GObject.GObject):



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