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

docs(faq): use web instead of desktop · pythonnative/pythonnative@0956970 · GitHub

Commit 0956970

Browse files
committed
docs(faq): use web instead of desktop
1 parent 09f1a18 commit 0956970

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎docs/meta/faq.md‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,24 @@ with the native UI through a versioned bridge.
2020

2121
Yes. Two patterns:
2222

23-
- **Branch on `IS_ANDROID` / `IS_IOS` / `IS_DESKTOP`** for small
23+
- **Branch on `IS_ANDROID` / `IS_IOS` / `IS_WEB`** for small
2424
differences inside a shared component:
2525

2626
```python
27-
from pythonnative.utils import IS_ANDROID, IS_IOS, IS_DESKTOP
27+
from pythonnative.utils import IS_ANDROID, IS_IOS, IS_WEB
2828

2929
if IS_ANDROID:
3030
...
3131
elif IS_IOS:
3232
...
33-
elif IS_DESKTOP:
33+
elif IS_WEB:
3434
...
3535
```
3636

37-
`pn preview` runs the app with `IS_DESKTOP` set; see the
38-
[Desktop preview guide](../guides/desktop-preview.md).
39-
For a declarative alternative, use `Platform.select({...})`; see the
40-
[Platform API](../api/platform.md).
37+
`pn preview` runs the app with `IS_WEB` set; see the
38+
[Browser preview guide](../guides/browser-preview.md).
39+
For a declarative alternative, use
40+
[`Platform.select`][pythonnative.platform.Platform.select].
4141

4242
- **Per-platform native modules** for larger pieces (a custom widget,
4343
a device API). Implement once per platform behind a single Python

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL