Exemple #1
0
 def onOkPressed(self, widget, data=None):
     if ssml.querychange():
         # save config
         ssml.saveconfig()
         if self.saveMode == IlUtil.IS:
             # close window first
             self.window.destroy()
             # trigger the "Restart X" Dialog
             self.popup = Dialog.dlgRestart(self)
             self.popup.dialog.set_title(_("Input Language"))
         else:
             self.parent.setDetailChange(self.uuid, True)
             self.window.destroy()
     else:
         self.window.destroy()
Exemple #2
0
 def onOkPressed(self,widget,data=None):
     #always send ImDic when pressing ok
     self.parent.setImInfoDic(self.curImInfoDic)
     if ssml.querychange():
         #save config
         ssml.saveconfig()
         if self.saveMode==IlUtil.IS:
             #close window first
             self.window.destroy()
             #trigger the "Restart X" Dialog
             self.popup=Dialog.dlgRestart(self)
             self.popup.dialog.set_title(_("Input Language"))
         else:
             self.parent.setAdvanceChange(True);
             self.window.destroy()
     else:
         self.window.destroy()