Example #1
0
    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)
Example #2
0
    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)
Example #3
0
    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)
Example #4
0
    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)