[gnome-games] sudoku: Add test-running code to game_selector.py
- From: Zhang Sen <zhangsen src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-games] sudoku: Add test-running code to game_selector.py
- Date: Sat, 16 May 2009 23:37:47 -0400 (EDT)
commit d0d11206a695cd0f9af6e05be33aaa2d5752f71f
Author: Zhang Sen <zh jesse gmail com>
Date: Sun May 17 11:32:56 2009 +0800
sudoku: Add test-running code to game_selector.py
---
gnome-sudoku/src/lib/game_selector.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/gnome-sudoku/src/lib/game_selector.py b/gnome-sudoku/src/lib/game_selector.py
index 8b39b38..8916774 100644
--- a/gnome-sudoku/src/lib/game_selector.py
+++ b/gnome-sudoku/src/lib/game_selector.py
@@ -204,3 +204,7 @@ class NewOrSavedGameSelector ():
self.setup_dialog()
return self.handle_response(self.dialog.run())
+if __name__ == '__main__':
+ selector = NewOrSavedGameSelector()
+ import pprint
+ pprint.pprint (selector.run_dialog())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]