Debugger/DebugViewer.py

changeset 821
4c4a4525e69a
parent 791
9ec2ac20e54e
child 945
8cd4d08fa9f6
child 1510
e75ecf2bd9dd
--- a/Debugger/DebugViewer.py	Thu Jan 06 19:46:18 2011 +0100
+++ b/Debugger/DebugViewer.py	Fri Jan 07 10:01:24 2011 +0100
@@ -388,6 +388,14 @@
         """
         return self.__tabWidget.currentWidget()
         
+    def setCurrentWidget(self, widget):
+        """
+        Public slot to set the current page based on the given widget.
+        
+        @param widget reference to the widget (QWidget)
+        """
+        self.__tabWidget.setCurrentWidget(widget)
+        
     def showThreadList(self, currentID, threadList):
         """
         Public method to show the thread list.
@@ -425,4 +433,4 @@
         """
         if current is not None and self.__doThreadListUpdate:
             tid = int(current.text(0))
-            self.debugServer.remoteSetThread(tid)
\ No newline at end of file
+            self.debugServer.remoteSetThread(tid)

eric ide

mercurial