mirror of
https://github.com/allankoechke/pywebview.git
synced 2026-11-30 17:18:35 +00:00
* add move function to gtk.py * add move function to qt.py * add move function to window.py * blind implementation of move function for winforms.py * blindly implementing move in cocoa.py * Add x,y Update documentation Fix GTK * [Win] Center window by default * [GTK] Center window by default
345 B
345 B
Move window
Set window coordinates and move window after its creation.
import webview
from time import sleep
def move(window):
sleep(2)
window.move(0, 0)
if __name__ == '__main__':
window = webview.create_window('Move window example', html='<h1>Move window</h1>', x=100, y=200)
webview.start(move, window)