FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

docs(platform): document the desktop OS value and is_desktop (#64) · pythonnative/pythonnative@fcacf86 · GitHub

Commit fcacf86

Browse files
docs(platform): document the desktop OS value and is_desktop (#64)
Refs: #39 Co-authored-by: Owen Carey <37121709+owenthcarey@users.noreply.github.com>
1 parent 74273c2 commit fcacf86

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎docs/api/platform.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ branches throughout the codebase.
1616

1717
| Attribute | Values |
1818
|---|---|
19-
| `Platform.OS` | `"ios"`, `"android"`, or `"test"` |
19+
| `Platform.OS` | `"ios"`, `"android"`, `"desktop"`, or `"test"` |
2020
| `Platform.Version` | Best-effort OS version string |
21-
| `Platform.is_ios` / `Platform.is_android` / `Platform.is_test` | Booleans |
21+
| `Platform.is_ios` / `Platform.is_android` / `Platform.is_desktop` / `Platform.is_test` | Booleans |
2222
| `Platform.select(spec, default=None)` | Pick a value matching the current platform |
2323

24+
- `"desktop"` means the `pn preview` Tkinter backend.
25+
2426
## See also
2527

2628
- [Window dimensions, safe area, keyboard hooks](hooks.md) for

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL