Skip to content

Commit 5d86834

Browse files
Copilotfsmosca
andcommitted
Fix analysis box bottom alignment: reduce height to 3 and move nav/analysis buttons into right panel
Agent-Logs-Url: https://github.com/fsmosca/Python-Easy-Chess-GUI/sessions/ac4f6632-8fb7-4079-97ea-a914ff308d70 Co-authored-by: fsmosca <22366935+fsmosca@users.noreply.github.com>
1 parent bba5169 commit 5d86834

1 file changed

Lines changed: 17 additions & 18 deletions

File tree

python_easy_chess_gui.py

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
REVIEW_ANALYSIS_PV_MOVES = 7
7373
REVIEW_NAV_DEBOUNCE_SEC = 0.3
7474
REVIEW_MOVE_LIST_HEIGHT = 8 # reduced from 11 to make room for the threat panel
75-
REVIEW_ANALYSIS_BOX_HEIGHT = 4
75+
REVIEW_ANALYSIS_BOX_HEIGHT = 3
7676
REVIEW_THREAT_BOX_HEIGHT = 2
7777
REVIEW_THREAT_PV_PLIES = 5
7878

@@ -3315,24 +3315,23 @@ def build_review_layout(self, is_user_white=True):
33153315
[sg.Multiline('', do_not_clear=True, autoscroll=False,
33163316
size=(52, REVIEW_ANALYSIS_BOX_HEIGHT),
33173317
font=('Consolas', 10), key='review_analysis_k',
3318-
disabled=True, wrap_lines=False)]
3319-
]
3320-
3321-
board_column = [[sg.Column(board_layout)]]
3322-
3323-
layout = [
3324-
[sg.Menu(menu_def_review, tearoff=False)],
3318+
disabled=True, wrap_lines=False)],
3319+
[sg.Button('First', size=(10, 1)),
3320+
sg.Button('Previous', size=(10, 1)),
3321+
sg.Button('Next', size=(10, 1)),
3322+
sg.Button('Last', size=(10, 1))],
3323+
[sg.Button('Start Analysis', key='review_start_analysis_k',
3324+
tooltip='Start or restart engine analysis for the current position.'),
3325+
sg.Button('Stop Analysis', key='review_stop_analysis_k',
3326+
tooltip='Stop engine analysis updates in Review mode.')]
3327+
]
3328+
3329+
board_column = [[sg.Column(board_layout)]]
3330+
3331+
layout = [
3332+
[sg.Menu(menu_def_review, tearoff=False)],
33253333
[sg.Column(board_column, vertical_alignment='top'),
3326-
sg.Column(board_controls, vertical_alignment='top', expand_y=True)],
3327-
[sg.Button('First', size=(10, 1), pad=((10, 5), None)),
3328-
sg.Button('Previous', size=(10, 1)),
3329-
sg.Button('Next', size=(10, 1)),
3330-
sg.Button('Last', size=(10, 1)),
3331-
sg.Text('', size=(12, 1)),
3332-
sg.Button('Start Analysis', key='review_start_analysis_k',
3333-
tooltip='Start or restart engine analysis for the current position.'),
3334-
sg.Button('Stop Analysis', key='review_stop_analysis_k',
3335-
tooltip='Stop engine analysis updates in Review mode.')]
3334+
sg.Column(board_controls, vertical_alignment='top', expand_y=True)]
33363335
]
33373336

33383337
return layout

0 commit comments

Comments
 (0)