katago download

This commit is contained in:
Sander Land committed 2020-08-24 16:49:12 +02:00
1 parent b26720844a
commit 219f327c20
23 files changed
+339 -30

No files matched your search

+29 -3
View File
@@ -80,23 +80,45 @@
<ConfigPopup>:
configfile: configfile
model_path: model_path
katago_path: katago_path
model_files: model_files
katago_files: katago_files
download_progress_box: download_progress_box
katago_download_progress_box: katago_download_progress_box
DescriptionLabel:
text: i18n._('katago settings')
font_size: DESC_FONT_SIZE * 1.5
GridLayout:
cols: 2
rows: 5
size_hint: 1,5
rows: 6
size_hint: 1,6
spacing: CP_SPACING
DescriptionLabel:
text: i18n._("engine:katago")
size_hint: 0.33, 1
AnchorLayout:
LabelledPathInput:
id: katago_path
input_property: "engine/katago"
hint_text: i18n._("engine:katago:hint")
on_text: root.check_katas()
AnchorLayout:
size_hint: 0.33, 1
AutoSizedRoundedRectangleButton:
text: i18n._("download katago button")
on_press: root.download_katas()
size_hint_y: 0.7
AnchorLayout:
Spinner:
id: katago_files
text: ''
on_text:
if self.text and self.text == self.values[1]: katago_path.text = ''
elif self.text and self.text != self.values[0]: katago_path.text = args[1]
size_hint_y: 0.7
sync_height_frac: 1.0
-font_size: self.height * 0.5
-background_color: [*[c*255/88 for c in BOX_BACKGROUND_COLOR[:3]], 1] # compensate for texture
DescriptionLabel:
text: i18n._("engine:config")
size_hint: 0.33, 1
@@ -207,9 +229,13 @@
orientation: 'horizontal'
size_hint: 1,1.5
MDBoxLayout:
size_hint_x: 4 if self.children else 0.0001
size_hint_x: 3.5 if self.children else 0.0001
orientation: 'vertical'
id: download_progress_box
MDBoxLayout:
size_hint_x: 3.5 if self.children else 0.0001
orientation: 'vertical'
id: katago_download_progress_box
AnchorLayout:
AutoSizedRoundedRectangleButton:
padding_x: 15