panels do not call screen.show_all

This commit is contained in:
alfrix committed 2022-12-11 09:17:18 -03:00
1 parent a83f499c0c
commit 778cd84ba8
4 files changed
+1 -6

No files matched your search

-3
View File
@@ -63,9 +63,6 @@ class ScreenPanel:
def menu_item_clicked(self, widget, panel, item):
self._screen.show_panel(panel, item['panel'], item['name'], 1, False)
def show_all(self):
self._screen.show_all()
def load_menu(self, widget, name, title=None):
if f"{name}_menu" not in self.labels:
return
+1 -1
View File
@@ -764,7 +764,7 @@ class JobStatusPanel(ScreenPanel):
if self.state != "cancelling":
self.buttons['button_grid'].attach(self.buttons['menu'], 3, 0, 1, 1)
self.can_close = True
self.show_all()
self.content.show_all()
def show_file_thumbnail(self):
if self._files.has_thumbnail(self.filename):
-1
View File
@@ -47,7 +47,6 @@ class MainPanel(MenuPanel):
grid.attach(self.labels['menu'], 1, 0, 1, 1)
self.grid = grid
self.content.add(self.grid)
self.show_all()
def update_graph_visibility(self):
if self.left_panel is None or not self._printer.get_temp_store_devices():
-1
View File
@@ -64,7 +64,6 @@ class TemperaturePanel(ScreenPanel):
self.grid.attach(self.create_right_panel(), 1, 0, 1, 1)
self.content.add(self.grid)
self.show_all()
def create_right_panel(self):
cooldown = self._gtk.Button('cool-down', _('Cooldown'), "color4", self.bts, Gtk.PositionType.LEFT, 1)