def Widget(self, widget):
"""Setter for topmost widget, used to switch view modes.
@widget - widget instance, most probably ur.Frame
Assigns a new topmost widget to be displayed, essentially
allowing us to switch between modes, like board view,
main menu, etc.
"""
self._widget_stack.append(widget)
self.widget = widget
评论列表
文章目录