PyUnit/UnittestDialog.py

changeset 500
c3abc7895a01
parent 481
ad71812ba395
child 501
5c615a85241a
--- a/PyUnit/UnittestDialog.py	Thu Aug 12 10:11:06 2010 +0200
+++ b/PyUnit/UnittestDialog.py	Thu Aug 12 16:11:13 2010 +0200
@@ -33,8 +33,10 @@
     """
     Class implementing the UI to the pyunit package.
     
-    @signal unittestFile(string,int,int) emitted to show the source of a unittest file
+    @signal unittestFile(string, int, int) emitted to show the source of a unittest file
     """
+    unittestFile = pyqtSignal(str, int, int)
+    
     def __init__(self,prog = None,dbs = None,ui = None,parent = None,name = None):
         """
         Constructor
@@ -498,7 +500,7 @@
                 break
         if fmatch:
             fn, ln = fmatch.group(1, 2)
-            self.emit(SIGNAL('unittestFile'), fn, int(ln), 1)
+            self.unittestFile.emit(fn, int(ln), 1)
 
 class QtTestResult(unittest.TestResult):
     """

eric ide

mercurial