Included gomill framework for SGF and GTP support, and sketched out SGF game-loading code.
This commit is contained in:
16
pygo.py
16
pygo.py
@ -6,6 +6,7 @@
|
||||
import sys
|
||||
sys.path.append('lib/')
|
||||
sys.path.append('widgets/')
|
||||
sys.path.append('gomill/')
|
||||
|
||||
import goban
|
||||
import config
|
||||
@ -50,6 +51,14 @@ class Pygo():
|
||||
return True
|
||||
|
||||
|
||||
def on_game_save(self, widget):
|
||||
print 'stub: Pygo.on_game_save()'
|
||||
|
||||
|
||||
def on_game_save_as(self, widget):
|
||||
print 'stub: Pygo.on_game_save_as()'
|
||||
|
||||
|
||||
def on_game_close(self, widget):
|
||||
if self.games.get_current_page() == -1:
|
||||
return
|
||||
@ -65,9 +74,12 @@ class Pygo():
|
||||
game.winner_box.hide()
|
||||
|
||||
|
||||
|
||||
def on_local_load_sgf(self, widget):
|
||||
print 'stub: Pygo.on_local_load_sgf()'
|
||||
|
||||
|
||||
def on_net_direct(self, widget):
|
||||
print 'stub: Pygo.on_menu_net_direct()'
|
||||
print 'stub: Pygo.on_net_direct()'
|
||||
|
||||
|
||||
def on_quit(self, widget):
|
||||
|
Reference in New Issue
Block a user