File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33API reference will be generated here via mkdocstrings.
44
5- Key flags and helpers (0.2.0) :
5+ Key flags and helpers:
66
77- ` pythonnative.utils.IS_ANDROID ` : platform flag with robust detection for Chaquopy/Android.
88- ` pythonnative.utils.get_android_context() ` : returns the current Android Activity/Context when running on Android.
Original file line number Diff line number Diff line change 22
33High-level overview of PythonNative components and how they map to native UI.
44
5- ## Constructor pattern (0.2.0)
5+ ## Constructor pattern
66
77- All core components share a consistent, contextless constructor on both platforms.
88- On Android, a ` Context ` is acquired implicitly from the current ` Activity ` set by ` pn.Page ` .
3030- ` pn.Page ` stores the Android ` Activity ` so components like ` pn.Button() ` and ` pn.Label() ` can construct their native counterparts.
3131- If you construct views before the ` Page ` is created on Android, a runtime error will be raised because no ` Context ` is available.
3232
33- ## Core components (0.2.0)
33+ ## Core components
3434
3535Stabilized with contextless constructors on both platforms:
3636
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " pythonnative"
7- version = " 0.2 .0"
7+ version = " 0.3 .0"
88description = " Cross-platform native UI toolkit for Android and iOS"
99authors = [
1010 { name = " Owen Carey" }
Original file line number Diff line number Diff line change 11from importlib import import_module
22from typing import Any , Dict
33
4- __version__ = "0.2 .0"
4+ __version__ = "0.3 .0"
55
66__all__ = [
77 "ActivityIndicatorView" ,
You can’t perform that action at this time.
0 commit comments