Exemplo n.º 1
0
def minimizeWindow(xid=None):
    ensureArguments(xid)
    xid = int(xid)
    Window.get(xid).minimize()
Exemplo n.º 2
0
def closeWindow(xid=None):
    ensureArguments(xid)
    xid = int(xid)
    Window.get(xid).close(time())
Exemplo n.º 3
0
def activateWindow(xid=None):
    ensureArguments(xid)
    xid = int(xid)
    Window.get(xid).activate(time())
Exemplo n.º 4
0
def getWindowGroup(xid=None):
    ensureArguments(xid)
    xid = int(xid)
    return Window.get(xid).get_class_group_name()
Exemplo n.º 5
0
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"
Exemplo n.º 6
0
def getWindowName(xid=None):
    ensureArguments(xid)
    xid = int(xid)
    Window.get(xid).get_name()
Exemplo n.º 7
0
def getWindowNeedsAttention(xid=None):
    ensureArguments(xid)
    xid = int(xid)
    return Window.get(xid).needs_attention()
Exemplo n.º 8
0
def isWindowMinimized(xid=None):
    ensureArguments(xid)
    xid = int(xid)
    return Window.get(xid).is_minimized()