def minimizeWindow(xid=None): ensureArguments(xid) xid = int(xid) Window.get(xid).minimize()
def closeWindow(xid=None): ensureArguments(xid) xid = int(xid) Window.get(xid).close(time())
def activateWindow(xid=None): ensureArguments(xid) xid = int(xid) Window.get(xid).activate(time())
def getWindowGroup(xid=None): ensureArguments(xid) xid = int(xid) return Window.get(xid).get_class_group_name()
def getWindowIcon(xid=None): ensureArguments(xid) xid = int(xid) image = Window.get(xid).get_icon() buf = image.save_to_bufferv("png", [], [])[1] return b64encode(buf).decode(), "image/png;base64"
def getWindowName(xid=None): ensureArguments(xid) xid = int(xid) Window.get(xid).get_name()
def getWindowNeedsAttention(xid=None): ensureArguments(xid) xid = int(xid) return Window.get(xid).needs_attention()
def isWindowMinimized(xid=None): ensureArguments(xid) xid = int(xid) return Window.get(xid).is_minimized()