pychess.perspectives.games package¶
Submodules¶
pychess.perspectives.games.annotationPanel module¶
pychess.perspectives.games.bookPanel module¶
pychess.perspectives.games.chatPanel module¶
pychess.perspectives.games.commentPanel module¶
pychess.perspectives.games.engineOutputPanel module¶
pychess.perspectives.games.historyPanel module¶
-
class
pychess.perspectives.games.historyPanel.Sidepanel¶ Bases:
object-
add_move(gamemodel, ply)¶
-
game_changed(gamemodel, ply)¶
-
game_started(game)¶
-
get_background_rgba(selected=False)¶
-
load(gmwidg)¶
-
moves_undone(gamemodel, moves)¶
-
on_game_terminated(model)¶
-
on_row_activated(tv, path, col, from_show_changed=False)¶
-
on_style_updated(widget)¶
-
ply_to_row_col(ply)¶
-
shownChanged(boardview, shown)¶
-
pychess.perspectives.games.scorePanel module¶
-
class
pychess.perspectives.games.scorePanel.Sidepanel¶ Bases:
object-
analysis_changed(gamemodel, ply)¶
-
fetch_chess_conf()¶
-
game_changed(model, ply)¶
-
game_started(model)¶
-
load(gmwidg)¶
-
moves_undone(model, moves)¶
-
on_game_terminated(model)¶
-
plot_selected(plot, selected)¶
-
shownChanged(boardview, shown)¶
-
Module contents¶
The task of this perspective, is to save, load and init new games
-
class
pychess.perspectives.games.Games¶ Bases:
GObject,pychess.perspectives.Perspective-
adjust_divider(diff)¶ Try to move paned (containing board) divider to show/hide captured pieces
-
attachGameWidget(gmwidg)¶
-
closeAllGames(gamewidgets)¶
-
closeGame(gmwidg)¶
-
cur_gmwidg()¶
-
customGetTabLabelText(child)¶
-
delGameWidget(gmwidg)¶ Remove the widget from the GUI after the game has been terminated
-
async
generalStart(gamemodel, player0tup, player1tup, loaddata=None)¶ The player tuples are: (The type af player in a System.const value, A callable creating the player, A list of arguments for the callable, A preliminary name for the player)
If loaddata is specified, it should be a tuple of: (A text uri or fileobj, A Savers.something module with a load function capable of loading it, An int of the game in file you want to load, The position from where to start the game)
-
getheadbook()¶
-
init_layout()¶
-
saveGame(game, position=None)¶
-
saveGameAs(game, position=None, export=False)¶
-
saveGamePGN(game)¶
-
saveGameSimple(uri, game, position=None)¶
-
show_tabs(show)¶
-
tabsCallback(widget)¶
-
zoomToBoard(view_zoomed)¶
-
-
pychess.perspectives.games.get_open_dialog()¶
-
pychess.perspectives.games.get_save_dialog(export=False)¶