Beispiel #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")
Beispiel #2
0
def _call_lib_check_ERR(method_name, *args):
    return _check_ERR(_call_lib(method_name, *args), method_name)
Beispiel #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
Beispiel #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")
Beispiel #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
Beispiel #6
0
def _call_lib_check_ERR(method_name, *args):
    return _check_ERR(_call_lib(method_name, *args), method_name)