gnome-games r9038 - in trunk/gnome-sudoku/src/lib: . gtk_goodies



Author: thomashpa
Date: Sat Apr 11 21:39:34 2009
New Revision: 9038
URL: http://svn.gnome.org/viewvc/gnome-games?rev=9038&view=rev

Log:
Clean up of imports. Patch by Zhang Sen. Bug #578700

Modified:
   trunk/gnome-sudoku/src/lib/dialog_swallower.py
   trunk/gnome-sudoku/src/lib/game_selector.py
   trunk/gnome-sudoku/src/lib/gtk_goodies/dialog_extras.py
   trunk/gnome-sudoku/src/lib/main.py
   trunk/gnome-sudoku/src/lib/printing.py
   trunk/gnome-sudoku/src/lib/sudoku_maker.py

Modified: trunk/gnome-sudoku/src/lib/dialog_swallower.py
==============================================================================
--- trunk/gnome-sudoku/src/lib/dialog_swallower.py	(original)
+++ trunk/gnome-sudoku/src/lib/dialog_swallower.py	Sat Apr 11 21:39:34 2009
@@ -1,5 +1,5 @@
 # -*- coding: utf-8 -*-
-import gtk, gobject
+import gtk
 
 # Convenience library for a new kind of UI -- for e.g. this game, we
 # don't really want to have dialogs. Nonetheless, it's convenient to

Modified: trunk/gnome-sudoku/src/lib/game_selector.py
==============================================================================
--- trunk/gnome-sudoku/src/lib/game_selector.py	(original)
+++ trunk/gnome-sudoku/src/lib/game_selector.py	Sat Apr 11 21:39:34 2009
@@ -1,5 +1,5 @@
 # -*- coding: utf-8 -*-
-import gtk, gobject, time
+import gtk, gobject
 import sudoku, saver, sudoku_maker
 import sudoku_thumber
 from gettext import gettext as _

Modified: trunk/gnome-sudoku/src/lib/gtk_goodies/dialog_extras.py
==============================================================================
--- trunk/gnome-sudoku/src/lib/gtk_goodies/dialog_extras.py	(original)
+++ trunk/gnome-sudoku/src/lib/gtk_goodies/dialog_extras.py	Sat Apr 11 21:39:34 2009
@@ -1,5 +1,5 @@
 # -*- coding: utf-8 -*-
-import gtk, gobject, os.path
+import gtk, os.path
 import re
 import xml.sax.saxutils
 from gettext import gettext as _
@@ -456,7 +456,7 @@
             self.vbox.show_all()
             self.hp.set_position(325)
         else:
-            self.vbox.add(textwin)
+            self.vbox.add(self.textwin)
             self.vbox.show_all()
         if jump_to: self.jump_to_header(jump_to)
 

Modified: trunk/gnome-sudoku/src/lib/main.py
==============================================================================
--- trunk/gnome-sudoku/src/lib/main.py	(original)
+++ trunk/gnome-sudoku/src/lib/main.py	Sat Apr 11 21:39:34 2009
@@ -5,12 +5,12 @@
 except ImportError, err:
     print ("PyGTK not found. Please make sure it is installed properly and referenced in your PYTHONPATH environment variable.")
 
-import gtk, gobject, pango
+import gtk, gobject
 import os, os.path
 from gtk_goodies import gconf_wrapper, Undo, dialog_extras
-import gsudoku, sudoku, saver, sudoku_maker, printing, sudoku_generator_gui
+import gsudoku, saver, sudoku_maker, printing, sudoku_generator_gui
 import game_selector
-import time, threading
+import threading
 from gettext import gettext as _
 from gettext import ngettext
 from defaults import *

Modified: trunk/gnome-sudoku/src/lib/printing.py
==============================================================================
--- trunk/gnome-sudoku/src/lib/printing.py	(original)
+++ trunk/gnome-sudoku/src/lib/printing.py	Sat Apr 11 21:39:34 2009
@@ -3,8 +3,6 @@
 import sudoku, gsudoku, saver
 from defaults import *
 from gtk_goodies import gconf_wrapper
-from gettext import gettext as _
-from gettext import ngettext
 
 def fit_squares_in_rectangle (width, height, n, margin=0):
     """Optimally fit squares into a rectangle.

Modified: trunk/gnome-sudoku/src/lib/sudoku_maker.py
==============================================================================
--- trunk/gnome-sudoku/src/lib/sudoku_maker.py	(original)
+++ trunk/gnome-sudoku/src/lib/sudoku_maker.py	Sat Apr 11 21:39:34 2009
@@ -1,15 +1,11 @@
 # -*- coding: utf-8 -*-
-import sys
 import os, shutil
 import os.path
 import sudoku
 import random
-import pickle
 import time
 import pausable
 import threading
-import saver
-from gettext import gettext as _
 from defaults import *
 
 class SudokuGenerator:



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