Esempio n. 1
0
	def run(self):
		content.load()
		clock = pygame.time.Clock()
		self.setScene(StartGameScene())
		while 1:
			dt = clock.tick(60) / 1000.0
			self.update(dt)
Esempio n. 2
0
def reIndexArt():
    import content, config
    config.setConfigFolder('../config/')
    indexer = MusicIndexer()
    tracks = content.load()
    for track in tracks:
        track.albumCoverPath = indexer._getAlbumCover(os.path.dirname(track.filePath)).encode("utf-8")
    content.save(tracks)
Esempio n. 3
0
_cfg = config.load()

for table in _cfg.tables:
	assert getattr(_cfg, table.label) is not None
	assert getattr(_cfg, table.label) == _cfg.get_table(table.label)


# for table in _cfg.tables:
# 	for row in table.rows:
# 		print table.label, row.label


# 	print table.label


_content = content.load()

print _content

# # import dreq_config as config
# # import dreq_content as content


# _config = config.load()

# experiment_cfg = _config.get_table("experiment")

# print experiment_cfg
# print experiment_cfg.row_labels
# # rows = [repr(r) for r in experiment_cfg.rows]
# # print experiment_cfg.rows