Preferences/ConfigurationPages/ProtobufPage.py

changeset 5970
411f7ba577d5
parent 5968
c5112b5cb7a9
child 5974
dfb291b5b620
diff -r 584c21b6587a -r 411f7ba577d5 Preferences/ConfigurationPages/ProtobufPage.py
--- a/Preferences/ConfigurationPages/ProtobufPage.py	Mon Nov 13 20:20:06 2017 +0100
+++ b/Preferences/ConfigurationPages/ProtobufPage.py	Tue Nov 14 19:13:28 2017 +0100
@@ -34,14 +34,21 @@
             "Press to select the Protobuf compiler via a file selection"
             " dialog."))
         
+        self.grpcPythonPicker.setMode(E5PathPickerModes.OpenFileMode)
+        self.grpcPythonPicker.setToolTip(self.tr(
+            "Press to select the Python interpreter containing the grpc"
+            " compiler via a file selection dialog."))
+        
         # set initial values
         self.protocPicker.setText(Preferences.getProtobuf("protoc"))
+        self.grpcPythonPicker.setText(Preferences.getProtobuf("grpcPython"))
         
     def save(self):
         """
         Public slot to save the protobuf configuration.
         """
         Preferences.setProtobuf("protoc", self.protocPicker.text())
+        Preferences.setProtobuf("grpcPython", self.grpcPythonPicker.text())
     
 
 def create(dlg):

eric ide

mercurial