コード例 #1
0
ファイル: pnl_lang.py プロジェクト: nitheeshkl/miniPOS
 def Language(self):
     "Sets the Language."
     ids = 80, 77, 78, 79, 69, 70
     words = lang_utility.lang(ids)
     self.w2, self.w3, self.w4, self.w5 = words[:4]
     if self.edit_mode:
         self.w1 = words[4]
     else:
         self.w1 = words[5]
     self.back_btn.SetLabel(words[1])
     self.next_btn.SetLabel(words[2])
     self.save_btn.SetLabel(words[3])
コード例 #2
0
ファイル: pnl_intro.py プロジェクト: nitheeshkl/miniPOS
 def Language(self):
     'Sets the language.'
     objects = [self.pLabel, self.editLabel, self.edit_btn, 
                self.addLabel, self.nameLabel, self.fromLabel,
                self.add_btn]
     id = 27, 69, 30, 70, 72, 73, 70
     words = lang_utility.lang(id)
     for object, word in zip(objects, words):
         object.SetLabel(word)
     # Special Cases
     self.add_btn.SetLabel(words[-1])
     self.editLabel.SetLabel(words[1]+':')
     self.nameLabel.SetLabel(words[4]+':')