def set_panel_userptr(self, obj): code = lib.set_panel_userptr(self._pan, ffi.cast("void *", obj)) return _check_ERR(code, "set_panel_userptr")
def _call_lib_check_ERR(method_name, *args): return _check_ERR(_call_lib(method_name, *args), method_name)
def replace_panel(self, window): panel = _find_panel(self._pan) _check_ERR(lib.replace_panel(self._pan, window._win), "replace_panel") panel._window = window return None