Пример #1
0
 def __init__(self, gui):
     Keys.__init__(self)
     Mouse.__init__(self)
     # tkinter
     self.root = gui
     # self.root.withdraw()
     # parser
     self.parser = ArgumentParser()
     self.configure_parser()
     self.args = self.parser.parse_args()
     # general stuff
     self.firefox = True
     self.msg = 'Nothing'
     self.__link_tabs = 0
     self.link_list = None
     self.wait_time = 1.5
     self.raid_wait = 0.45
     self.a = 0.1
     self.is_sitter = False
     # village
     self.villages = None
     self.read_all_str()
     self.n_villages = len(self.villages)
     self.add_stat_info()
     self.Production = self.init_production()
     # self.print_village_overview()
     # raids
     self.units = {0: 'Clubswinger', 1: 'Scout', 2: 'Ram', 3: 'Chief', 4: 'Spearman', 5: 'Paladin', 6: 'Catapult', 7: 'Settler', 8: 'Axeman', 9: 'Teutonic Knight', 10: 'Hero'}
     self.raid_info = self.get_raid_info()
     # go back to the terminal
     self.press_alt_tab()
Пример #2
0
 def __init__(self, file_dir):
     self.FileDir = file_dir
     self.Band = self.get_band()
     self.Album = self.get_album()
     self.ExcludeTypes = ['ini', 'jpg', 'txt']
     self.Exclude = [self.Band, self.Album, '(mp3co.biz)']
     self.Songs = self.load_songs()
     Keys.__init__(self)
     Mouse.__init__(self)
Пример #3
0
 def __init__(self):
     Mouse.__init__(self, 0, 0, 0)
     self.mouseEaten = False
Пример #4
0
 def __init__(self, config_file='config.ini'):
     Keys.__init__(self)
     Mouse.__init__(self)
     self.ConfigFileName = config_file