Skip to content

docs(platform): document the desktop OS value and is_desktop - #64

Merged
owenthcarey merged 2 commits into
pythonnative:mainfrom
nigelseah24:docs/platform-docs-add-desktop-os
Sep 3, 2026
Merged

owenthcarey merged 2 commits into
pythonnative:mainfrom
nigelseah24:docs/platform-docs-add-desktop-os

Conversation

@nigelseah24

Copy link
Copy Markdown
Contributor

What

  • Updated the quick-reference table to include "desktop" in the Platform.OS row and add Platform.is_desktop to the booleans row, with a short note that "desktop" means the pn preview Tkinter backend.

Why

  • The quick-reference table in docs/api/platform.md (around line 19) says Platform.OS is "ios", "android", or "test", and only lists is_ios / is_android / is_test. Since the desktop preview backend landed, the code also reports "desktop" and exposes Platform.is_desktop (see src/pythonnative/platform.py, lines 39, 77-78, 83, and 94).

Testing

  • No tests, only doc change

Risks/Impact

  • No risks, only doc change

Docs/Follow-ups

  • Docs updated

Closes #39

@owenthcarey
owenthcarey merged commit fcacf86 into pythonnative:main Sep 3, 2026
15 checks passed
@owenthcarey

Copy link
Copy Markdown
Contributor

Thank you so much!

@nigelseah24
nigelseah24 deleted the docs/platform-docs-add-desktop-os branch September 3, 2026 10: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.

Platform API docs omit the "desktop" OS value and is_desktop

2 participants