def get( self, menu ): return self._color[ menu.description() ]
def _walkMenus( self, menu ): self._color[ menu.description() ] = self._COLORS.next() for item in menu.items(): if isinstance( item, cuipy.menus.menu.Menu ): self._walkMenus( item )