Tools/TRSingleApplication.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 2997
7f0ef975da9e
child 3145
a9de05d4a22f
equal deleted inserted replaced
3056:9986ec0e559a 3057:10516539f238
11 11
12 import os 12 import os
13 13
14 from PyQt4.QtCore import pyqtSignal 14 from PyQt4.QtCore import pyqtSignal
15 15
16 from Toolbox.SingleApplication import SingleApplicationClient, SingleApplicationServer 16 from Toolbox.SingleApplication import SingleApplicationClient, \
17 SingleApplicationServer
17 18
18 ########################################################################### 19 ###########################################################################
19 # define some module global stuff 20 # define some module global stuff
20 ########################################################################### 21 ###########################################################################
21 22
73 74
74 def __saLoadTranslation(self, fnames): 75 def __saLoadTranslation(self, fnames):
75 """ 76 """
76 Private method used to handle the "Load Translation" command. 77 Private method used to handle the "Load Translation" command.
77 78
78 @param fnames filenames of the translations to be loaded (list of strings) 79 @param fnames filenames of the translations to be loaded
80 (list of strings)
79 """ 81 """
80 first = True 82 first = True
81 for fname in fnames: 83 for fname in fnames:
82 self.loadTranslation.emit(fname, first) 84 self.loadTranslation.emit(fname, first)
83 first = False 85 first = False
84 86
85 87
86 class TRSingleApplicationClient(SingleApplicationClient): 88 class TRSingleApplicationClient(SingleApplicationClient):
87 """ 89 """
88 Class implementing the single application client of the Translations Previewer. 90 Class implementing the single application client of the Translations
91 Previewer.
89 """ 92 """
90 def __init__(self): 93 def __init__(self):
91 """ 94 """
92 Constructor 95 Constructor
93 """ 96 """

eric ide

mercurial