gtk: improve wrapping of labels

This commit is contained in:
alfrix
2022-08-17 07:36:36 -03:00
committed by Alfredo Monclus
parent 836e4a3aea
commit 38ceea5204
20 changed files with 62 additions and 69 deletions

View File

@@ -81,9 +81,7 @@ class MenuPanel(ScreenPanel):
j2_temp = env.from_string(item['name'])
parsed_name = j2_temp.render()
b = self._gtk.ButtonImage(
item['icon'], parsed_name, f"color{(i % 4) + 1}"
)
b = self._gtk.ButtonImage(item['icon'], parsed_name, f"color{(i % 4) + 1}")
if item['panel'] is not False:
b.connect("clicked", self.menu_item_clicked, item['panel'], item)
elif item['method'] is not False: