def OnTextPathButton( self, event): # wxGlade: MultiImportDialogue.<event_handler> dlg = wx.FileDialog(self, message="Select text file", defaultDir=self.mainFrame.config.Read( "WorkingDir", utilities.get_main_dir()), defaultFile="", wildcard="TXT files (*.txt)|*.txt", style=wx.OPEN | wx.CHANGE_DIR | wx.FILE_MUST_EXIST) if dlg.ShowModal() == wx.ID_OK: self.textPath = dlg.GetPaths()[0] self.textPathLabel.SetLabel(self.textPath)
def OnTextPathButton(self, event): # wxGlade: MultiImportDialogue.<event_handler> dlg = wx.FileDialog( self, message="Select text file", defaultDir=self.mainFrame.config.Read("WorkingDir", utilities.get_main_dir()), defaultFile="", wildcard="TXT files (*.txt)|*.txt", style=wx.OPEN | wx.CHANGE_DIR | wx.FILE_MUST_EXIST, ) if dlg.ShowModal() == wx.ID_OK: self.textPath = dlg.GetPaths()[0] self.textPathLabel.SetLabel(self.textPath)
def OnAudioPathButton(self, event): # wxGlade: MultiImportDialogue.<event_handler> dlg = wx.DirDialog( self, message="Select Directory to import audio files from", defaultPath=self.mainFrame.config.Read("WorkingDir", utilities.get_main_dir()), style=wx.DD_DIR_MUST_EXIST, ) if dlg.ShowModal() == wx.ID_OK: self.audioPath = dlg.GetPath() self.audioPathLabel.SetLabel(self.audioPath) self.textPathButton.Enable(True) self.importButton.Enable(True)
def OnAudioPathButton( self, event): # wxGlade: MultiImportDialogue.<event_handler> dlg = wx.DirDialog( self, message="Select Directory to import audio files from", defaultPath=self.mainFrame.config.Read("WorkingDir", utilities.get_main_dir()), style=wx.DD_DIR_MUST_EXIST) if dlg.ShowModal() == wx.ID_OK: self.audioPath = dlg.GetPath() self.audioPathLabel.SetLabel(self.audioPath) self.textPathButton.Enable(True) self.importButton.Enable(True)