Simple WebView for android with python
Project description
webview
Create WebViews for android with this little python module (still in development).
To create a webview with python for android you need to use kivy / kivymd or pydroid3, you can create a webview app with kivy like this:
Examples:
from kivy.uix.widget import Widget
from kivymd.app import MDApp
from webview import WebView
from kivy.lang.builder import Builder
from kivymd.uix.button import MDFlatButton
from kivymd.uix.screen import MDScreen
Builder.load_string("""
<MyWebView>
MDFlatButton:
text: "Push"
pos_hint: {"center_x": .5, "center_y": .4}
on_press: root.Push()
""")
class MyWebView(MDScreen):
def Push(self):
WebView("https://www.google.com")
class MyWebApp(MDApp):
def build(self):
return MyWebView()
if __name__ == '__main__':
MyWebApp().run()
This example can be used in Pydroid3 and in a kivy / kivymd app
installation:
pip3 install webview-android
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
webview_android-0.10.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for webview_android-0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e21aa13551efaf9d46373a8183961f1dc033ac3b3316d2ce03668d811376805e |
|
MD5 | 816929bf4f5b86a7daf22845331bd7a8 |
|
BLAKE2b-256 | 4605c0cfb2dfe6b681361ece8eff446f4f8346d48ddb27ab7a54e8542141303a |