245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
|
try:
if xActionEvent.ActionCommand == 'Close':
self.xContainer.endExecute()
elif xActionEvent.ActionCommand == 'New':
self._newVerb()
elif xActionEvent.ActionCommand == 'Change':
if self.oVerb:
self._displayResults(self.oVerb.createConjTable(self.opro.State, self.oneg.State, self.otco.State, self.oint.State, self.ofem.State))
else:
print(str(xActionEvent))
except:
traceback.print_exc()
# XJobExecutor
def trigger (self, args):
|
|
|
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
|
try:
if xActionEvent.ActionCommand == 'Close':
self.xContainer.endExecute()
elif xActionEvent.ActionCommand == 'New':
self._newVerb()
elif xActionEvent.ActionCommand == 'Change':
if self.oVerb:
self._displayResults()
else:
print(str(xActionEvent))
except:
traceback.print_exc()
# XJobExecutor
def trigger (self, args):
|
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
|
elif self.oVerb.nPronominable == 1:
self.opro.State = True
self.opro.Enabled = False
else: # -1 or 1 or error
self.opro.State = False
self.opro.Enabled = False
self.option_msg.Label = ""
self._displayResults(self.oVerb.createConjTable(self.opro.State, self.oneg.State, self.otco.State, self.oint.State, self.ofem.State))
def _displayResults (self, dConjTable):
try:
self.input.Text = ""
# infinitif
self.infi.Label = dConjTable["infi"]
# participe présent
self.ppre.Label = dConjTable["ppre"]
# participes passés
self.ppas1.Label = dConjTable["ppas1"]
|
|
|
>
|
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
|
elif self.oVerb.nPronominable == 1:
self.opro.State = True
self.opro.Enabled = False
else: # -1 or 1 or error
self.opro.State = False
self.opro.Enabled = False
self.option_msg.Label = ""
self._displayResults()
def _displayResults (self):
try:
dConjTable = self.oVerb.createConjTable(self.opro.State, self.oneg.State, self.otco.State, self.oint.State, self.ofem.State)
self.input.Text = ""
# infinitif
self.infi.Label = dConjTable["infi"]
# participe présent
self.ppre.Label = dConjTable["ppre"]
# participes passés
self.ppas1.Label = dConjTable["ppas1"]
|