Project/Project.py

changeset 5254
c89ecaa0eda3
parent 5244
54a0f215a6f0
child 5305
5e2620a03de0
equal deleted inserted replaced
5253:57276f763bf6 5254:c89ecaa0eda3
154 "Python3", 154 "Python3",
155 "Ruby", 155 "Ruby",
156 "JavaScript", 156 "JavaScript",
157 ] 157 ]
158 158
159 self.dbgFilters = { 159 self.__dbgFilters = {
160 "Python2": self.tr( 160 "Python2": self.tr(
161 "Python2 Files (*.py2);;" 161 "Python2 Files (*.py2);;"
162 "Python2 GUI Files (*.pyw2);;"), 162 "Python2 GUI Files (*.pyw2);;"),
163 "Python3": self.tr( 163 "Python3": self.tr(
164 "Python3 Files (*.py *.py3);;" 164 "Python3 Files (*.py *.py3);;"
165 "Python3 GUI Files (*.pyw *.pyw3);;"), 165 "Python3 GUI Files (*.pyw *.pyw3);;"),
166 "Ruby": self.tr("Ruby Files (*.rb);;"),
167 } 166 }
168 167
169 self.vcsMenu = None 168 self.vcsMenu = None
170 169
171 self.__initProjectTypes() 170 self.__initProjectTypes()
227 Public method to get the programming languages supported by project. 226 Public method to get the programming languages supported by project.
228 227
229 @return list of supported programming languages (list of string) 228 @return list of supported programming languages (list of string)
230 """ 229 """
231 return self.__progLanguages[:] 230 return self.__progLanguages[:]
231
232 def getDebuggerFilters(self, language):
233 """
234 Public method to get the debugger filters for a programming language.
235
236 @param language programming language
237 @type str
238 @return filter string
239 @rtype str
240 """
241 try:
242 return self.__dbgFilters[language]
243 except KeyError:
244 return ""
232 245
233 def __initProjectTypes(self): 246 def __initProjectTypes(self):
234 """ 247 """
235 Private method to initialize the list of supported project types. 248 Private method to initialize the list of supported project types.
236 """ 249 """

eric ide

mercurial