pythonnative.Page — base class for screens. Subclass it, implement render(), and use set_state() to trigger re-renders.
pythonnative.Text,Button,Column,Row,ScrollView,TextInput,Image,Switch,ProgressBar,ActivityIndicator,WebView,Spacer
Each returns an Element descriptor. See the Component Property Reference for full signatures.
pythonnative.Element — the descriptor type returned by element functions. You generally don't create these directly.
pythonnative.utils.IS_ANDROID— platform flag with robust detection for Chaquopy/Android.pythonnative.utils.get_android_context()— returns the current AndroidActivity/Contextwhen running on Android.pythonnative.utils.set_android_context(ctx)— set byPageon Android; you generally don't call this directly.pythonnative.utils.get_android_fragment_container()— returns the current Fragment containerViewGroupused for page rendering.pythonnative.utils.set_android_fragment_container(viewGroup)— set by the hostPageFragment; you generally don't call this directly.
pythonnative.reconciler.Reconciler — diffs element trees and applies minimal native mutations. Used internally by Page.
pythonnative.native_views.NativeViewRegistry — maps element type names to platform-specific handlers. Use set_registry() to inject a mock for testing.