screenpanel remove unnecesary getters

This commit is contained in:
alfrix
2022-11-22 00:12:11 -03:00
parent b415eca1c8
commit ef5f86a67d
3 changed files with 12 additions and 24 deletions

View File

@@ -200,8 +200,8 @@ class BasePanel(ScreenPanel):
def add_content(self, panel):
self.current_panel = panel
self.set_title(panel.get_title())
self.content.add(panel.get_content())
self.set_title(panel.title)
self.content.add(panel.content)
def back(self, widget=None):
if self.current_panel is None: