From ad00d2545cc468f5848c6ac3d27c584aa65d6004 Mon Sep 17 00:00:00 2001 From: Sander Land Date: Mon, 26 Oct 2020 16:11:46 +0100 Subject: [PATCH] move sound --- katrain/core/game_node.py | 2 +- katrain/popups.kv | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/katrain/core/game_node.py b/katrain/core/game_node.py index 6a1b894..48e23f4 100644 --- a/katrain/core/game_node.py +++ b/katrain/core/game_node.py @@ -81,7 +81,7 @@ class GameNode(SGFNode): ): engine.request_analysis( self, - lambda result, partial_result: self.set_analysis(result, refine_move, find_alternatives, partial_result), + callback=lambda result, partial_result: self.set_analysis(result, refine_move, find_alternatives, partial_result), priority=priority, visits=visits, analyze_fast=analyze_fast, diff --git a/katrain/popups.kv b/katrain/popups.kv index ad51904..a07c44d 100644 --- a/katrain/popups.kv +++ b/katrain/popups.kv @@ -175,7 +175,7 @@ font_size: DESC_FONT_SIZE * 1.5 text: i18n._('engine settings') BoxLayout: - size_hint: 1,5 + size_hint: 1,6 orientation: 'horizontal' GridLayout: cols: 2 @@ -199,6 +199,11 @@ input_property: "general/debug_level" helper_text: i18n._("general:debug_level:hint") helper_text_mode: "on_focus" + DescriptionLabel: + text: i18n._('count down sound') + AnchorLayout: + LabelledCheckBox: + input_property: "timer/sound" SmallDescriptionLabel: text: i18n._('config file path') SmallDescriptionLabel: @@ -319,7 +324,7 @@ : MDGridLayout: cols: 2 - rows: 5 + rows: 4 spacing: 1.5 * CP_SPACING size_hint: 1,2.5 DescriptionLabel: @@ -346,11 +351,6 @@ LabelledIntInput: text: "0" input_property: "timer/minimal_use" - DescriptionLabel: - text: i18n._('count down sound') - AnchorLayout: - LabelledCheckBox: - input_property: "timer/sound" AnchorLayout: size_hint: 1,1 AutoSizedRoundedRectangleButton: