I'm wondering if there is a way to open a program instead of a file using python, qt, or qt4 designer? For example, I would like to have a button in my GUI that when clicked, it opens a media player. Thx.
I'm wondering if there is a way to open a program instead of a file using python, qt, or qt4 designer? For example, I would like to have a button in my GUI that when clicked, it opens a media player. Thx.
You can use QProcess to do that.
Ok, great, I will look up that function in the docs. Thank you!
For future reference for anyone else with this question, I have attached some simple code for being able to open programs:
Qt Code:
def process(self): p.setWorkingDirectory('/usr/bin/vlc') #this is where your program is located p.start('vlc') #p.start('insert program name here')To copy to clipboard, switch view to plain text mode
I have another question, is there a way to embed the video within a created GUI? Instead of just opening a media player in another window?
Bookmarks