![]() |
[Solved] python QT4 subprocess.call to run shell script?
1 Attachment(s)
I am a total noob when i comes to Python. But i wanted to give it a try as i need a GUI. I understand bash shell scripting a lot better so i want to use that in my "program" even though i know it would be better to do it all in python.
So where am i going wrong? (attaching the complete file below) Code:
self.retranslateUi(dialog) |
Re: python QT4 subprocess.call to run shell script?
***bump***
|
Re: python QT4 subprocess.call to run shell script?
subprocess.call(["/bin/sh", f])
|
Re: python QT4 subprocess.call to run shell script?
Quote:
Right now i am trying with this two: Code:
def open(dialog): |
Re: python QT4 subprocess.call to run shell script?
When i do this i get an error.
Code:
self.retranslateUi(dialog) Code:
Traceback (most recent call last): |
Re: python QT4 subprocess.call to run shell script?
1 Attachment(s)
Solved! I got some help from my friend Wellef and sorted it out. I will attach the file in case someone els finds it useful.
This is how it should look: Code:
self.retranslateUi(MainWindow) |
All times are GMT. The time now is 20:41. |
vBulletin® Version 3.8.8