def on_ok(self, event):
if not os.path.exists(self.out_dir.GetPath()):
os.makedirs(self.out_dir.GetPath())
self.num_songs = len(self.in_files)
if self.num_songs <= 0:
alert = wx.MessageDialog(self, "No songs selected!", "pyjam", wx.ICON_EXCLAMATION)
alert.ShowModal()
alert.Destroy()
return
self.progress_dialog = wx.ProgressDialog(title="Conversion", message="Converting songs...",
maximum=self.num_songs * 2, parent=self, style=PD_STYLE)
self.converter = FFmpegConvertThread(parent=self, dest=self.out_dir.GetPath(), rate=self.game_rate.GetValue(),
vol=self.volume.GetValue(), songs=self.in_files)
self.converter.start()
评论列表
文章目录