def destroy(self): """ Destroys the control. :return: None """ libui.uiControlDestroy(self.pointer())
def onClosing(window, data): print('On closing..') control = libui.uiControlPointer(window) libui.uiControlDestroy(control) libui.uiQuit() return 0