Tools/TRPreviewer.py

changeset 880
52ed20236a1c
parent 805
83ca4d1ff648
child 882
34b86be88bf0
equal deleted inserted replaced
878:a61710d5bbbc 880:52ed20236a1c
340 """ 340 """
341 fileNameList = QFileDialog.getOpenFileNames( 341 fileNameList = QFileDialog.getOpenFileNames(
342 None, 342 None,
343 self.trUtf8("Select UI files"), 343 self.trUtf8("Select UI files"),
344 "", 344 "",
345 self.trUtf8("Qt User-Interface Files (*.ui)")) 345 self.trUtf8("Qt User-Interface Files (*.ui)"),
346 QFileDialog.DontUseNativeDialog)
346 347
347 for fileName in fileNameList: 348 for fileName in fileNameList:
348 self.preview.loadWidget(fileName) 349 self.preview.loadWidget(fileName)
349 350
350 self.__updateActions() 351 self.__updateActions()
355 """ 356 """
356 fileNameList = QFileDialog.getOpenFileNames( 357 fileNameList = QFileDialog.getOpenFileNames(
357 None, 358 None,
358 self.trUtf8("Select translation files"), 359 self.trUtf8("Select translation files"),
359 "", 360 "",
360 self.trUtf8("Qt Translation Files (*.qm)")) 361 self.trUtf8("Qt Translation Files (*.qm)"),
362 QFileDialog.DontUseNativeDialog)
361 363
362 first = True 364 first = True
363 for fileName in fileNameList: 365 for fileName in fileNameList:
364 self.translations.add(fileName, first) 366 self.translations.add(fileName, first)
365 first = False 367 first = False

eric ide

mercurial