Пример #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)
Пример #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)
Пример #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)
Пример #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)