sugar-toolkit-gtk3/sugar/canvas/MenuShell.py

13 lines
273 B
Python
Raw Normal View History

class MenuShell:
def __init__(self, grid):
self._menu_controller = None
self._grid = grid
def set_active(self, controller):
if self._menu_controller:
self._menu_controller.popdown()
self._menu_controller = controller
def get_grid(self):
return self._grid