Search code examples
wxpython

Launch external application from wxPython


Is it possible to launch another application from within a wxPython app? For example if I have a list of pdf files can the user double click on 1 of them to have the users registered pdf file application to open up and display the contents?


Solution

  • I would recommend using Python's os module can just call os.startfile(path). You could also use the subprocess module for this too.

    For your second question about a file picker, see probably want wx.FileDialog which you can read more about here: