コード例 #1
0
ファイル: canvas.py プロジェクト: opme/dxf2gcode
 def tr(self, string_to_translate):
     """
     Translate a string using the QCoreApplication translation framework
     @param string_to_translate: a unicode string
     @return: the translated unicode string if it was possible to translate
     """
     return text_type(QtCore.QCoreApplication.translate("MyDropDownMenu", string_to_translate))
コード例 #2
0
 def tr(self, string_to_translate):
     """
     Translate a string using the QCoreApplication translation framework
     @param: string_to_translate: a unicode string
     @return: the translated unicode string if it was possible to translate
     """
     return text_type(string_to_translate)
コード例 #3
0
ファイル: popupdialog.py プロジェクト: cnc-club/dxf2gcode
 def tr(self, string_to_translate):
     """
     Translate a string using the QCoreApplication translation framework
     @param: string_to_translate: a unicode string
     @return: the translated unicode string if it was possible to translate
     """
     return text_type(QtCore.QCoreApplication.translate('PopUpDialog',
                                                        string_to_translate))
コード例 #4
0
ファイル: geoent_circle.py プロジェクト: rere-dnaw/dxf2g
 def tr(self, string_to_translate):
     """
     Translate a string using the QCoreApplication translation framework
     @param string_to_translate: a unicode string
     @return: the translated unicode string if it was possible to translate
     """
     return text_type(QtCore.QCoreApplication.translate('GeoentCircle',
                                                        string_to_translate))