Webkit ウィンドウに Google カレンダーを壁紙として配置しようとしています。
Python の作業スクリプトは次のようになります。
#!/usr/bin/python2 -u
# -*- coding: iso8859-15 -*-
display_UI = True
email = "xxxx@gmail.com"
passwd = "xxxxxxxx"
useragent = "Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1"
import spynner
browser = spynner.Browser(
debug_level=spynner.WARNING,
user_agent = useragent
)
browser.create_webview(display_UI)
browser.webview.setWindowTitle('Gcalendar')
browser.webview.showMaximized()
browser.load("https://accounts.google.com/ServiceLogin?service=cl&passive=1209600&continue=https://www.google.com/calendar/render&followup=http://www.google.com/calendar&scc=1")
browser.fill("input[name=Email]", email)
browser.fill("input[name=Passwd]", passwd)
browser.click("input[name=signIn]")
browser.wait_load()
browser.load("https://www.google.com/calendar/render?pli=1")
browser.wait_load()
# vim:ts=4:sw=4
私が今やりたいことは、プログラムでこのウィンドウを壁紙にすることです:
- タスクバーをスキップ
- ポケットベルをスキップ
- 全画面表示 (spynner モジュールで完了)
- すべてのアプリケーションを非表示にすると、ウィンドウは壁紙のようになります。
成功せずに試したこと
- アプリケーション名のkde詳細設定
- xwinwrap