I have two pyqt programs. Both should be available to run by themselves, but I need to run one of them from the other. The one that will only run manually is called foo
and the second one (the one I want to call from foo
) is called bar
. I tried to follow this example and I get the new window, but with an error
AttributeError: 'bar' object has no attribute 'exec_'
I guess I could create it, but I don't know what to put in it. So how do I make another window pop by clicking a button in the first window?
Bonus points for somebody who can make the original window inactive.
Here is how my function look right now:
barMaker = bar(self)
bar.exec_()
Unimaginative, I know.
Do you want to just call the second gui program using
?
You can then disable your first GUI or do whatever you want with it. The new GUI is running in a separate process.