You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PythonNative is a cross-platform UI toolkit for Python. It allows you to create native UI elements such as buttons and labels in a Pythonic way, regardless of whether you're running on iOS or Android.
4
+
5
+
## Installation
6
+
7
+
You can install PythonNative from PyPI:
8
+
9
+
```bash
10
+
pip install pythonnative
11
+
```
12
+
13
+
Please note that PythonNative requires Python 3.6 or higher.
14
+
15
+
## Usage
16
+
17
+
Here's a simple example of how to create a button and a label:
18
+
19
+
```python
20
+
import pythonnative as pn
21
+
22
+
# Create a button
23
+
button = pn.Button("Click Me")
24
+
print(button.get_title()) # Outputs: Click Me
25
+
26
+
# Create a label
27
+
label = pn.Label("Hello, World!")
28
+
print(label.get_text()) # Outputs: Hello, World!
29
+
```
30
+
31
+
## License
32
+
33
+
PythonNative is licensed under the MIT License. See `LICENSE` for more information.
0 commit comments