diff -r e9e7eca7efee -r bf71ee032bb4 src/eric7/Preferences/ConfigurationPages/ProtobufPage.py --- a/src/eric7/Preferences/ConfigurationPages/ProtobufPage.py Wed Jul 13 11:16:20 2022 +0200 +++ b/src/eric7/Preferences/ConfigurationPages/ProtobufPage.py Wed Jul 13 14:55:47 2022 +0200 @@ -19,6 +19,7 @@ """ Class implementing the protobuf configuration page. """ + def __init__(self): """ Constructor @@ -26,33 +27,38 @@ super().__init__() self.setupUi(self) self.setObjectName("ProtobufPage") - + self.protocPicker.setMode(EricPathPickerModes.OPEN_FILE_MODE) - self.protocPicker.setToolTip(self.tr( - "Press to select the Protobuf compiler via a file selection" - " dialog.")) - + self.protocPicker.setToolTip( + self.tr( + "Press to select the Protobuf compiler via a file selection" " dialog." + ) + ) + self.grpcPythonPicker.setMode(EricPathPickerModes.OPEN_FILE_MODE) - self.grpcPythonPicker.setToolTip(self.tr( - "Press to select the Python interpreter containing the gRPC" - " compiler via a file selection dialog.")) - + 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): """ Module function to create the configuration page. - + @param dlg reference to the configuration dialog @return reference to the instantiated page (ConfigurationPageBase) """