Skip to content

Refactor: Restore the host API names PythonLauncher, PythonWidget and PythonAppView - #167

Merged
b-re-w merged 1 commit into
developfrom
feat/host-api-names
Oct 3, 2026
Merged

b-re-w merged 1 commit into
developfrom
feat/host-api-names

Conversation

@b-re-w

@b-re-w b-re-w commented Oct 3, 2026

Copy link
Copy Markdown
Member

Closes #105

Restores the original host API names (app-template pycomposeui): PythonLauncher(content) starts the interpreter if needed and composes content; PythonAppView(modifier, module, attribute) composes the app root, including a State-held root (pythonx-compose: PythonAppView(module = "pythonx.compose.runtime", attribute = "app_root")); PythonWidget(composableName, modifier, moduleName) and PythonWidget(root, modifier) compose a named or given Python composable. PythonContent is removed (no alias). Surface/colour parameters of the original are left out: the module depends on compose.runtime and compose.ui only.

Test added: aNamedWidgetDrawsTheSamePixelsAsThePassedCallable, aLauncherComposesItsContent. The not-yet-initialised start path is not tested (the interpreter cannot be re-initialised in one JVM).
Verified: :ksp-fixtures:compose:desktopTest all green; :python-multiplatform-compose:compileReleaseKotlinAndroid OK.

@b-re-w
b-re-w merged commit 6de021a into develop Oct 3, 2026
@b-re-w
b-re-w deleted the feat/host-api-names branch October 3, 2026 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant