g13gui: bitwidgets: Fix the naming of showAll

This commit is contained in:
June Tate-Gans 2021-05-02 15:21:26 -05:00
parent 95822a273d
commit 513928e57e
2 changed files with 3 additions and 3 deletions

View File

@ -53,14 +53,14 @@ class ButtonTests(unittest.TestCase):
self.screen.buttonBar.addChild(upButton) self.screen.buttonBar.addChild(upButton)
self.screen.buttonBar.addChild(downButton) self.screen.buttonBar.addChild(downButton)
self.screen.buttonBar.addChild(checkButton) self.screen.buttonBar.addChild(checkButton)
self.screen.buttonBar.show_all() self.screen.buttonBar.showAll()
self.screen.nextFrame() self.screen.nextFrame()
def testLabelButton(self): def testLabelButton(self):
testButton = Label(0, 0, "Test", font=Fonts.TINY) testButton = Label(0, 0, "Test", font=Fonts.TINY)
self.screen.buttonBar.addChild(testButton) self.screen.buttonBar.addChild(testButton)
self.screen.buttonBar.show_all() self.screen.buttonBar.showAll()
self.screen.nextFrame() self.screen.nextFrame()

View File

@ -88,7 +88,7 @@ class Widget(Subject, Observer):
def hide(self): def hide(self):
self.visible = False self.visible = False
def show_all(self): def showAll(self):
for child in self._children: for child in self._children:
if child: if child:
child.show() child.show()