I have a question that has been around my mind for a while.
Lets say that I have designed my GUI with Qt designer, so I would have the .iu
file that I would convert into .py file like this:
pyuic4 mainGUI.ui -o mainGUI.py
So now, If I do this I have all the necessary to access widgets and etc etc
main.py file:
from PyQt4 import QtGui
from mainGUI import Ui_mainGUI
class MyMainWindow(Ui_mainGUI):
def __init__(self, *args, **kwargs)
super(MyMainWindow, self).__init__(*args, **kwargs)
self.setupUi(self)
My question now is that, if I have all my so called worker class
in another .py
file, how do I integrate all together to make my GUI show results, or show progress etc all these kind of thigs.
A simple-fast example of worker class:
myworker.py file:
import numpy as np
import pandas as pd
class worker():
def sum2numbers(self, a,b):
return a+b
....
....
Should class MyMainWindow
inherit?? im a bit confused: