def grid_hide(widget): widget._grid_info = widget.grid_info() widget.grid_remove() def grid_show(widget): widget.grid(**widget._grid_info)