@@ -307,17 +307,20 @@ def creaBloqueInformacion(self):
307307 self .configuration .set_property (self .lb_player_black , "black" )
308308
309309 # # Capturas
310- n_ancho_capt = (width_pgn - 12 ) // 2
311- self .lb_capt_white = Controles .LB (self ).relative_width (n_ancho_capt ).set_wrap ()
310+ self .lb_capt_white = Controles .LB (self ).set_wrap ()
312311 style = "QWidget { border-style: groove; border-width: 1px; border-color: LightGray; padding: 2px 0px 2px 0px;}"
313312 self .lb_capt_white .setStyleSheet (style )
314313
315- self .lb_capt_black = Controles .LB (self ).relative_width ( n_ancho_capt ). set_wrap ()
314+ self .lb_capt_black = Controles .LB (self ).set_wrap ()
316315 self .lb_capt_black .setStyleSheet (style )
317316
318317 self .bt_capt = (Controles .PB (self , self .captures_symbol (), self .captures_mouse_pressed )
319318 .set_font_type (puntos = 14 )).relative_width (10 )
320319
320+ n_ancho_capt = ((self .pgn .anchoColumnas () + 20 ) - self .bt_capt .width () - 2 ) // 2
321+ self .lb_capt_white .setFixedWidth (n_ancho_capt )
322+ self .lb_capt_black .setFixedWidth (n_ancho_capt )
323+
321324 # Relojes
322325 f = Controles .FontType (puntos = 26 , peso = 500 )
323326
@@ -507,11 +510,11 @@ def grid_pulsada_cabecera(self, grid, column):
507510 self .manager .configuration .x_pgn_width = n_ancho_pgn
508511 self .manager .configuration .graba ()
509512 n_ancho_labels = n_ancho_pgn // 2
510- self .lb_player_white .relative_width (n_ancho_labels )
511- self .lb_player_black .relative_width (n_ancho_labels )
513+ self .lb_player_white .setFixedWidth (n_ancho_labels )
514+ self .lb_player_black .setFixedWidth (n_ancho_labels )
512515 n_ancho_labels -= self .bt_capt .width () // 2 + 2
513- self .lb_capt_white .relative_width (n_ancho_labels )
514- self .lb_capt_black .relative_width (n_ancho_labels )
516+ self .lb_capt_white .setFixedWidth (n_ancho_labels )
517+ self .lb_capt_black .setFixedWidth (n_ancho_labels )
515518
516519 def grid_tecla_control (self , grid , k , is_shift , is_control , is_alt ):
517520 self .key_pressed ("G" , k )
0 commit comments