android-notify 1.52.4__py3-none-any.whl → 1.52.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of android-notify might be problematic. Click here for more details.
- {android_notify-1.52.4.dist-info → android_notify-1.52.5.dist-info}/METADATA +15 -9
- {android_notify-1.52.4.dist-info → android_notify-1.52.5.dist-info}/RECORD +4 -4
- {android_notify-1.52.4.dist-info → android_notify-1.52.5.dist-info}/WHEEL +0 -0
- {android_notify-1.52.4.dist-info → android_notify-1.52.5.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: android-notify
|
|
3
|
-
Version: 1.52.
|
|
3
|
+
Version: 1.52.5
|
|
4
4
|
Summary: A Python package that simpilfies creating Android notifications in Kivy apps.
|
|
5
5
|
Home-page: https://github.com/fector101/android-notify
|
|
6
6
|
Author: Fabian
|
|
@@ -128,17 +128,23 @@ The library supports multiple notification styles:
|
|
|
128
128
|
#### Progress Bar notification
|
|
129
129
|
|
|
130
130
|
```python
|
|
131
|
-
|
|
131
|
+
|
|
132
|
+
progress = 0
|
|
132
133
|
|
|
133
134
|
notification = Notification(
|
|
134
|
-
title="Downloading...",
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
progress_current_value=0
|
|
139
|
-
)
|
|
135
|
+
title="Downloading...", message="0% downloaded",
|
|
136
|
+
style= "progress",
|
|
137
|
+
progress_current_value=0,progress_max_value=100
|
|
138
|
+
)
|
|
140
139
|
notification.send()
|
|
141
|
-
|
|
140
|
+
|
|
141
|
+
def update_progress(dt):
|
|
142
|
+
global progress
|
|
143
|
+
progress = min(progress + 10, 100)
|
|
144
|
+
notification.updateProgressBar(progress, f"{progress}% downloaded")
|
|
145
|
+
return progress < 100 # Stops when reaching 100%
|
|
146
|
+
|
|
147
|
+
Clock.schedule_interval(update_progress, 3)
|
|
142
148
|
```
|
|
143
149
|
|
|
144
150
|
**Sample Image:**
|
|
@@ -3,7 +3,7 @@ android_notify/__main__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
3
3
|
android_notify/core.py,sha256=B3gOgbLGGI6tz-Q_T2wmk74oggOSDX0Qz4lqj00vaFo,6114
|
|
4
4
|
android_notify/styles.py,sha256=3olKruhAbTrk5OzuhDnk_Pgpv8XYk8dWFmr48Q9rQVk,352
|
|
5
5
|
android_notify/sword.py,sha256=IDJfEQxVvVgrjGhcH65jIwisiqAmvF3Z5blU5Kr4DQM,27117
|
|
6
|
-
android_notify-1.52.
|
|
7
|
-
android_notify-1.52.
|
|
8
|
-
android_notify-1.52.
|
|
9
|
-
android_notify-1.52.
|
|
6
|
+
android_notify-1.52.5.dist-info/METADATA,sha256=STofIu_aUFb3dvOMB94zX5OidwVmaMZqjl2bhHYDZEs,13586
|
|
7
|
+
android_notify-1.52.5.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
8
|
+
android_notify-1.52.5.dist-info/top_level.txt,sha256=IR1ONMrRSRINZpWn2X0dL5gbWwWINsK7PW8Jy2p4fU8,15
|
|
9
|
+
android_notify-1.52.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|