def open_adding_new_cn_character_window(master, callback):
    new_character = CharacterModel.create_new_cn_character()
    popup = CharacterWindow(
        master, new_character, lambda:
        (CharacterModel.insert_character_into_db(new_character),
         callback(new_character)))
    master.wait_window(popup)
 def _insert_new_character(self, character):
     CharacterModel.insert_character_into_db(character)
     self.inserted_count += 1
def open_adding_new_cn_character_window(master, callback):
    new_character = CharacterModel.create_new_cn_character()
    popup = CharacterWindow(master, new_character, lambda: (
        CharacterModel.insert_character_into_db(new_character), callback(new_character)))
    master.wait_window(popup)
示例#4
0
 def _insert_new_character(self, character):
     CharacterModel.insert_character_into_db(character)
     self.inserted_count += 1