def focus(self):
    self.layout()
    if self.showMessageLine:
        self.messageLine.bringToFront()
    Window.focus(self)
def focus(self):
    self.layout()
    if self.showMessageLine:
        self.messageLine.bringToFront()
    Window.focus(self)