Skip to content

Commit

Permalink
Version R2.14l
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmonk committed May 16, 2024
1 parent ef3f563 commit bf21465
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion bin/Code/Kibitzers/WKibEngine.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self, cpu):
else:
rotulo = _("Alternatives")

delegado = Delegados.EtiquetaPOS(True, siLineas=False) if self.with_figurines else None
delegado = Delegados.EtiquetaPOS(True, siLineas=False, siFondo=True) if self.with_figurines else None
delegado_pgn = Delegados.LinePGN() if self.with_figurines else None

self.color_done = QTUtil.qtColorRGB(231, 244, 254)
Expand Down
13 changes: 7 additions & 6 deletions bin/Code/Leagues/WLeagueWorker.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,13 @@ def procesa_match(self):
self.xengine[side].set_gui_dispatch(self.gui_dispatch)

bk = rv.book
if not Util.exist_file(bk):
bk = None
if bk == "*":
bk = self.torneo.book()
if bk == "-": # Puede que el torneo tenga "-"
bk = None
if bk:
if not Util.exist_file(bk):
bk = None
if bk == "*":
bk = self.torneo.book()
if bk == "-": # Puede que el torneo tenga "-"
bk = None
if bk:
self.book[side] = Books.Book("P", bk, bk, True)
self.book[side].polyglot()
Expand Down
8 changes: 4 additions & 4 deletions bin/Code/MainWindow/WBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ def put_captures(self, dic):

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

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

max_num = self.lb_capt_white.width() // 27
xshow(max_num, "b", d[True], self.lb_capt_white, xvpz if xvpz > 0 else 0)
xshow(max_num, "w", d[False], self.lb_capt_black, -xvpz if xvpz < 0 else 0)
# max_num = self.lb_capt_white.width() // 27
xshow("b", d[True], self.lb_capt_white, xvpz if xvpz > 0 else 0)
xshow("w", d[False], self.lb_capt_black, -xvpz if xvpz < 0 else 0)
if self.lb_capt_white.isVisible():
self.lb_capt_white.show()
self.lb_capt_black.show()
Expand Down
4 changes: 2 additions & 2 deletions bin/Code/Util.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ def filesize(file: str) -> int:


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


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


def file_copy(origin: str, destino: str) -> bool:
Expand Down
2 changes: 1 addition & 1 deletion bin/Code/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def relative_root(path):


BASE_VERSION = "B" # Para el control de updates que necesitan reinstalar entero
VERSION = "R 2.14k"
VERSION = "R 2.14l"
DEBUG = False
DEBUG_ENGINES = False

Expand Down
2 changes: 1 addition & 1 deletion bin/bug.log
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Version R 2.14k
Version R 2.14l

0 comments on commit bf21465

Please sign in to comment.