Preferences/ConfigurationPages/ProtobufPage.py

changeset 5970
411f7ba577d5
parent 5968
c5112b5cb7a9
child 5974
dfb291b5b620
equal deleted inserted replaced
5969:584c21b6587a 5970:411f7ba577d5
32 self.protocPicker.setMode(E5PathPickerModes.OpenFileMode) 32 self.protocPicker.setMode(E5PathPickerModes.OpenFileMode)
33 self.protocPicker.setToolTip(self.tr( 33 self.protocPicker.setToolTip(self.tr(
34 "Press to select the Protobuf compiler via a file selection" 34 "Press to select the Protobuf compiler via a file selection"
35 " dialog.")) 35 " dialog."))
36 36
37 self.grpcPythonPicker.setMode(E5PathPickerModes.OpenFileMode)
38 self.grpcPythonPicker.setToolTip(self.tr(
39 "Press to select the Python interpreter containing the grpc"
40 " compiler via a file selection dialog."))
41
37 # set initial values 42 # set initial values
38 self.protocPicker.setText(Preferences.getProtobuf("protoc")) 43 self.protocPicker.setText(Preferences.getProtobuf("protoc"))
44 self.grpcPythonPicker.setText(Preferences.getProtobuf("grpcPython"))
39 45
40 def save(self): 46 def save(self):
41 """ 47 """
42 Public slot to save the protobuf configuration. 48 Public slot to save the protobuf configuration.
43 """ 49 """
44 Preferences.setProtobuf("protoc", self.protocPicker.text()) 50 Preferences.setProtobuf("protoc", self.protocPicker.text())
51 Preferences.setProtobuf("grpcPython", self.grpcPythonPicker.text())
45 52
46 53
47 def create(dlg): 54 def create(dlg):
48 """ 55 """
49 Module function to create the configuration page. 56 Module function to create the configuration page.

eric ide

mercurial