def __init__(self): """ Creates a new search entry. """ super().__init__() self.control = libui.uiNewSearchEntry() def handler(window, data): self.onChanged(data) return 0 self.changedHandler = libui.uiEntryOnChanged(self.control, handler, None)
def __init__(self): """ Creates a new entry. """ super().__init__() self.control = self._create_control() def handler(window, data): self.onChanged(data) return 0 self._change_callback_ptr, self._change_callback = \ get_c_callback_func_ptr(handler, c_func_type_void_structp_voidp) self.changedHandler = libui.uiEntryOnChanged(self.control, self._change_callback_ptr, None)