UI/Browser.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3178
f25fc1364c88
parent 3357
2390df6f42ba
child 3515
1b8381afe38f
--- a/UI/Browser.py	Sun Mar 30 22:00:14 2014 +0200
+++ b/UI/Browser.py	Thu Apr 03 23:05:31 2014 +0200
@@ -257,7 +257,7 @@
                 self.__configure)
         
         # create the attribute menu
-        self.gotoMenu = QMenu(self.trUtf8("Goto"), self)
+        self.gotoMenu = QMenu(self.tr("Goto"), self)
         self.gotoMenu.aboutToShow.connect(self._showGotoMenu)
         self.gotoMenu.triggered.connect(self._gotoAttribute)
         
@@ -362,7 +362,7 @@
         
         for lineno in sorted(linenos):
             act = self.gotoMenu.addAction(
-                self.trUtf8("Line {0}".format(lineno)))
+                self.tr("Line {0}".format(lineno)))
             act.setData([fileName, lineno])
         
     def _gotoAttribute(self, act):
@@ -546,6 +546,14 @@
         """
         self.__model.programChange(os.path.dirname(fn))
         
+    def handleInterpreterChanged(self, interpreter):
+        """
+        Public slot to handle a change of the debug client's interpreter.
+        
+        @param interpreter interpreter of the debug client (string)
+        """
+        self.__model.interpreterChanged(interpreter)
+        
     def wantedItem(self, itm, filter=None):
         """
         Public method to check type of an item.

eric ide

mercurial