Skip to content

Commit bf21465

Browse files
committed
Version R2.14l
1 parent ef3f563 commit bf21465

File tree

6 files changed

+16
-15
lines changed

6 files changed

+16
-15
lines changed

bin/Code/Kibitzers/WKibEngine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def __init__(self, cpu):
3434
else:
3535
rotulo = _("Alternatives")
3636

37-
delegado = Delegados.EtiquetaPOS(True, siLineas=False) if self.with_figurines else None
37+
delegado = Delegados.EtiquetaPOS(True, siLineas=False, siFondo=True) if self.with_figurines else None
3838
delegado_pgn = Delegados.LinePGN() if self.with_figurines else None
3939

4040
self.color_done = QTUtil.qtColorRGB(231, 244, 254)

bin/Code/Leagues/WLeagueWorker.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -234,12 +234,13 @@ def procesa_match(self):
234234
self.xengine[side].set_gui_dispatch(self.gui_dispatch)
235235

236236
bk = rv.book
237-
if not Util.exist_file(bk):
238-
bk = None
239-
if bk == "*":
240-
bk = self.torneo.book()
241-
if bk == "-": # Puede que el torneo tenga "-"
242-
bk = None
237+
if bk:
238+
if not Util.exist_file(bk):
239+
bk = None
240+
if bk == "*":
241+
bk = self.torneo.book()
242+
if bk == "-": # Puede que el torneo tenga "-"
243+
bk = None
243244
if bk:
244245
self.book[side] = Books.Book("P", bk, bk, True)
245246
self.book[side].polyglot()

bin/Code/MainWindow/WBase.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ def put_captures(self, dic):
683683

684684
value = {"q": 1, "r": 2, "b": 3, "n": 4, "p": 5}
685685

686-
def xshow(max_num, tp, li, lb, num):
686+
def xshow(tp, li, lb, num):
687687
html = "<small>%+d</small>" % num if num else ""
688688
li.sort(key=lambda x: value[x.lower()])
689689
for n, pz in enumerate(li):
@@ -694,9 +694,9 @@ def xshow(max_num, tp, li, lb, num):
694694
html += '<img src="../Resources/IntFiles/Figs/%s%s.png" width="30" height="30">' % (tp, pz.lower())
695695
lb.set_text(html)
696696

697-
max_num = self.lb_capt_white.width() // 27
698-
xshow(max_num, "b", d[True], self.lb_capt_white, xvpz if xvpz > 0 else 0)
699-
xshow(max_num, "w", d[False], self.lb_capt_black, -xvpz if xvpz < 0 else 0)
697+
# max_num = self.lb_capt_white.width() // 27
698+
xshow("b", d[True], self.lb_capt_white, xvpz if xvpz > 0 else 0)
699+
xshow("w", d[False], self.lb_capt_black, -xvpz if xvpz < 0 else 0)
700700
if self.lb_capt_white.isVisible():
701701
self.lb_capt_white.show()
702702
self.lb_capt_black.show()

bin/Code/Util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@ def filesize(file: str) -> int:
7979

8080

8181
def exist_file(file: str) -> bool:
82-
return filesize(file) >= 0
82+
return filesize(file) >= 0 if file else False
8383

8484

8585
def exist_folder(folder: str) -> bool:
86-
return os.path.isdir(folder)
86+
return os.path.isdir(folder) if folder else False
8787

8888

8989
def file_copy(origin: str, destino: str) -> bool:

bin/Code/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def relative_root(path):
9999

100100

101101
BASE_VERSION = "B" # Para el control de updates que necesitan reinstalar entero
102-
VERSION = "R 2.14k"
102+
VERSION = "R 2.14l"
103103
DEBUG = False
104104
DEBUG_ENGINES = False
105105

bin/bug.log

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Version R 2.14k
1+
Version R 2.14l

0 commit comments

Comments
 (0)