예제 #1
0
 def set_panel_userptr(self, obj):
     code = lib.set_panel_userptr(self._pan, ffi.cast("void *", obj))
     return _check_ERR(code, "set_panel_userptr")
예제 #2
0
def _call_lib_check_ERR(method_name, *args):
    return _check_ERR(_call_lib(method_name, *args), method_name)
예제 #3
0
 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
예제 #4
0
 def set_panel_userptr(self, obj):
     code = lib.set_panel_userptr(self._pan, ffi.cast("void *", obj))
     return _check_ERR(code, "set_panel_userptr")
예제 #5
0
 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
예제 #6
0
def _call_lib_check_ERR(method_name, *args):
    return _check_ERR(_call_lib(method_name, *args), method_name)