Hi,

I have an application I am writing that has a fairly complicated set of functions that take a while to run.

I have put them inside a separate module file (and in their own class) to keep things simple.

the end of my main GUI file looks like this:

Qt Code:
  1. if __name__ == "__main__":
  2. import sys
  3.  
  4. app = QtGui.QApplication(sys.argv)
  5.  
  6. if len(sys.argv) == 1:
  7. filePath = serverRoot + ''
  8. else:
  9. filePath = sys.argv[1]
  10.  
  11. chunks = os.path.split(filePath)
  12. fpath = chunks[0]
  13. fname = chunks[1]
  14.  
  15. panel = StartQT4(fpath, fname)
  16. panel.show()
  17.  
  18. sys.exit(app.exec_())
To copy to clipboard, switch view to plain text mode 

I'm guessing this is a very newb question, but I can't seem to figure out how to send a signal (so I can update the UI) from a class in a separate file.

Imagine the other file looks something like this:

Qt Code:
  1. #myLib.py
  2.  
  3. class Stuff:
  4. def doComplicatedStuff():
  5. # Somehow send a signal here back to the main app that called this function
To copy to clipboard, switch view to plain text mode 

I am planning on running the "complicated function" in a separate thread so that the GUI updating will work.

Am I way off here?
This is only my 3rd day of Python, so please be gentle

Thanks in advance.