def push_letter(self, *args): letter = str(self.get_name()) if letter == "apostorphe": letter = "'" elif letter == "period": letter = "." if (DataBase.get_local_value('keyboard_shift_pointer')) == 1: letter = letter.capitalize() DataBase.set_local_value('keyboard_shift_pointer', 0) value = DataBase.get_local_value('keyboard_buffer') + letter DataBase.set_local_value('keyboard_buffer', value) if letter == "space": print('space') DataBase.set_local_value('keyboard_shift_pointer', 1) buffer_label.set_label(DataBase.get_local_value('keyboard_buffer'))
def delete_letter(self, *args): value = DataBase.get_local_value('keyboard_buffer') if len(value) >= 1: value = value[:-1] DataBase.set_local_value('keyboard_buffer', value) buffer_label.set_label(DataBase.get_local_value('keyboard_buffer'))
def push_clear(self, *args): DataBase.set_local_value('keyboard_buffer', "") DataBase.set_local_value('keyboard_shift_pointer', 1) buffer_label.set_label(DataBase.get_local_value('keyboard_buffer'))
def push_space(self, *args): value = DataBase.get_local_value('keyboard_buffer') + " " DataBase.set_local_value('keyboard_buffer', value) DataBase.set_local_value('keyboard_shift_pointer', 1) buffer_label.set_label(DataBase.get_local_value('keyboard_buffer'))
def push_enter(self, *args): DataBase.set_value(DataBase.get_local_value('keyboard_variable'), DataBase.get_local_value('keyboard_buffer'))