class OpenweathermapItem(MenuItem): __key = KeySymbol() def __init__(self, state): self.__state = state def start(self): self.__state.resource = self.get_name() def get_name(self): return 'Openweathermap' def get_key_name(self): return self.__key.DICT_KEY_WEB[self.get_name()] def get_key(self): return self.__key.DICT_KEY_WEB[self.get_name()]
class SinoptykItem(MenuItem): __key = KeySymbol() def __init__(self, state): self.__state = state def start(self): self.__state.resource = self.get_name() def get_name(self): return 'Sinoptik' def get_key_name(self): return self.__key.DICT_KEY_WEB[self.get_name()] def get_key(self): return self.__key.DICT_KEY_WEB[self.get_name()]
def __init__(self): self.__key = KeySymbol()
def __init__(self, items): self.__key = KeySymbol() self.__items = items
def __init__(self, state): self.__key = KeySymbol() self.__state= state