Game Header Editor¶
The game header editor is a 2-column table which assigns to values to header elements. The PGN standard lists the supported header elements. The header elements of 7-tag roster, i.e. Event, Site, Date, Round, White, Black and Result, are mandatory.
The Game/Select Header Elements … menu entry opens a dialog to add/remove header elements.
Depending on the type, the values are edited using a text, date and time editors. To avoid inconsistent header data, the following header elements are readonly:
Result, Annotator, PlyCount
any kind of opening information, i.e. Opening, Variation, SubVariation, ECO, NIC
- class gameheaderview.KeyType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
- class gameheaderview.GameHeaderView(parent=None)[source]¶
Game Header Editor object
- static headerElements(withoutSevenTagRoster: bool = False) List[str] [source]¶
Get game header elements
- Parameters:
withoutSevenTagRoster – returns only the optional header elements
- Returns:
list of header elements
- setPlyCount(newCount: int) None [source]¶
Sets the ‘PlyCount’ header element, if selected
- Parameters:
newCount – actual number of halfmoves