src/eric7/Tools/TRSingleApplication.py

branch
eric7
changeset 10431
64157aeb0312
parent 10303
ee1aadab1215
child 10439
21c28b0f9e41
equal deleted inserted replaced
10430:e440aaf179ce 10431:64157aeb0312
41 41
42 def __init__(self, parent): 42 def __init__(self, parent):
43 """ 43 """
44 Constructor 44 Constructor
45 45
46 @param parent parent widget (QWidget) 46 @param parent parent widget
47 @type QWidget
47 """ 48 """
48 SingleApplicationServer.__init__(self, SAFile) 49 SingleApplicationServer.__init__(self, SAFile)
49 50
50 self.parent = parent 51 self.parent = parent
51 52
66 67
67 def __saLoadForm(self, fnames): 68 def __saLoadForm(self, fnames):
68 """ 69 """
69 Private method used to handle the "Load Form" command. 70 Private method used to handle the "Load Form" command.
70 71
71 @param fnames filenames of the forms to be loaded (list of strings) 72 @param fnames filenames of the forms to be loaded
73 @type list of str
72 """ 74 """
73 for fname in fnames: 75 for fname in fnames:
74 self.loadForm.emit(fname) 76 self.loadForm.emit(fname)
75 77
76 def __saLoadTranslation(self, fnames): 78 def __saLoadTranslation(self, fnames):
77 """ 79 """
78 Private method used to handle the "Load Translation" command. 80 Private method used to handle the "Load Translation" command.
79 81
80 @param fnames filenames of the translations to be loaded 82 @param fnames filenames of the translations to be loaded
81 (list of strings) 83 @type list of str
82 """ 84 """
83 first = True 85 first = True
84 for fname in fnames: 86 for fname in fnames:
85 self.loadTranslation.emit(fname, first) 87 self.loadTranslation.emit(fname, first)
86 first = False 88 first = False

eric ide

mercurial