Ejemplo n.º 1
0
 def changeKbAndImWithLang(self):
     # setup keyboard
     self.curKb = IlUtil.getDefaultKbWithLang(self.curIl)
     self.kbCb.set_active(self.kbList.index(self.curKb))
     # setup input method
     self.curImInfoDic = IlUtil.getImInfoDicWithLang(self.curIl).copy()
     self.setupImComboBox()
     # check if it need disable/enable im
     if self.curImInfoDic.keys() == [IlUtil.EnglishImUuid]:
         self.setEnableImAndChangeUi(False)
     else:
         self.setEnableImAndChangeUi(True)