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 details)
Built Distribution
File details
Details for the file webview_android-0.10.tar.gz
.
File metadata
- Download URL: webview_android-0.10.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.8.0 tqdm/4.51.0 CPython/3.9.0+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
eaf3365edea7172eb12fb7b3e02434058e3438663e7b5aee24ab61c8edda7050
|
|
MD5 |
019bcf12ae529b9d5320c26ca6059ca8
|
|
BLAKE2b-256 |
e2bdfcbdb185fe9301a91039df27c1e2d96688eb2cc9aa53559b60f823376b05
|
File details
Details for the file webview_android-0.10-py3-none-any.whl
.
File metadata
- Download URL: webview_android-0.10-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.8.0 tqdm/4.51.0 CPython/3.9.0+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e21aa13551efaf9d46373a8183961f1dc033ac3b3316d2ce03668d811376805e
|
|
MD5 |
816929bf4f5b86a7daf22845331bd7a8
|
|
BLAKE2b-256 |
4605c0cfb2dfe6b681361ece8eff446f4f8346d48ddb27ab7a54e8542141303a
|