示例#1
0
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()]
示例#2
0
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()
示例#4
0
 def __init__(self, items):
     self.__key = KeySymbol()
     self.__items = items
示例#5
0
	def __init__(self, state):
		self.__key = KeySymbol()
		self.__state= state