Skip to content

Commit ea22eb3

Browse files
committed
Update pythonnative
1 parent b79f05d commit ea22eb3

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

libs/pythonnative/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PythonNative
22

3-
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.
3+
PythonNative is a cross-platform Python tool kit for Android and iOS. 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.
44

55
## Installation
66

libs/pythonnative/publish_to_pypi.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/bin/bash
22

3-
# Clean up old distribution and build directories
3+
# Clean up old distribution, build directories, and egg-info
44
rm -rf dist/
55
rm -rf build/
6+
rm -rf pythonnative.egg-info/
67

78
# Generate distribution archives
89
python setup.py sdist bdist_wheel

libs/pythonnative/pythonnative/pythonnative.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __init__(self, title=""):
2121
self.set_title(title)
2222

2323
def set_title(self, title):
24-
self.native_instance.setTitle_forState_(title, 0) # 0 is the state for 'normal'
24+
self.native_instance.setTitle_forState_(title, 0)
2525

2626
def get_title(self):
2727
return self.native_instance.titleForState_(0)
@@ -47,7 +47,7 @@ class Button:
4747
native_class = jclass("android.widget.Button")
4848

4949
def __init__(self, title=""):
50-
self.native_instance = self.native_class() # Instantiate the Java class
50+
self.native_instance = self.native_class()
5151
self.set_title(title)
5252

5353
def set_title(self, title):
@@ -60,7 +60,7 @@ class Label:
6060
native_class = jclass("android.widget.TextView")
6161

6262
def __init__(self, text=""):
63-
self.native_instance = self.native_class() # Instantiate the Java class
63+
self.native_instance = self.native_class()
6464
self.set_text(text)
6565

6666
def set_text(self, text):

libs/pythonnative/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
version="0.0.1",
66
author="Owen Carey",
77
author_email="pythonnative@gmail.com",
8-
description="A cross-platform UI toolkit for Python",
8+
description="A cross-platform Python tool kit for Android and iOS",
99
long_description=open("README.md").read(),
1010
long_description_content_type="text/markdown",
1111
url="https://pythonnative.com",
@@ -18,6 +18,6 @@
1818
python_requires=">=3.6",
1919
install_requires=[
2020
"rubicon-objc>=0.4.6,<0.5.0",
21-
# add more requirements here as necessary
21+
# Add more requirements here as necessary
2222
],
2323
)

0 commit comments

Comments
 (0)