예제 #1
0
파일: move.py 프로젝트: mikeandmore/wmplg
def move_current_window(dx, dy):
    wm = WindowManager()
    win = wm.current_window()
    x, y = win.get_position()
    x += dx
    y += dy
    win.move(x, y)
예제 #2
0
파일: move.py 프로젝트: mikeandmore/wmplg
def vertical_expand_current_window(height):
    wm = WindowManager()
    win = wm.current_window()
    x, y = win.get_position()
    w, h = win.get_size()
    win.move(x, 0)
    win.resize(w, height)