def __init__(self, view): # 네트워크 확인하기 self.ping = self.checkPing() self.downloaderMain = DownloaderMain.DownloaderMain(self.ping) self.musicPlay = MusicPlay.MusicPlay(self, view) self.view = view
def __init_config(self): self.tableList = [0 for x in range(0, 25)] self.scoreList = {} self.timer = QTimer() self.loopCount = 40 self.tickCount = 100 self.FirstTime = True # self.musicPlay = wavPlay() self.bgPlay = MusicPlay() indll = 'lib/in_mp3.dll' outdll = 'lib/out_wave.dll' if winamp.init(indll, outdll): print 'cannot load plugins' sys.exit(0) self.bgPlay.play('music/bg.mp3') self.bgIsPlay = True self.bgPlay.IsPaused = False self.wavplay = wavPlay()