Senior's Blog

ゴルフ(Golf)、python(Pythonista)、メンタルヘルスに関するブログです。

(19)webview

今回は「webview」です。

起動したらgoogleを開くだけの単純なものです。

 

import ui
url_list = ["http://google.com", "http://rakuten.co.jp"]
v = ui.load_view()
#display Google on startup
webview = v["webview1"]
url = url_list[0]
webview.load_url(url)
v.present('sheet')

 

UIとしては、webview1のみ配置したもので、図示するほどでもないので、

図は省略します。