urwid 3.0.1__py3-none-any.whl → 3.0.2__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 urwid might be problematic. Click here for more details.

urwid/version.py CHANGED
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '3.0.1'
21
- __version_tuple__ = version_tuple = (3, 0, 1)
20
+ __version__ = version = '3.0.2'
21
+ __version_tuple__ = version_tuple = (3, 0, 2)
@@ -562,7 +562,7 @@ class ScrollBar(WidgetDecoration[WrappedWidget]):
562
562
  top_weight = float(pos) / max(1, posmax) # pylint: disable=possibly-used-before-assignment
563
563
  top_height = int((maxrow - thumb_height) * top_weight)
564
564
  if top_height == 0 and top_weight > 0:
565
- top_height = 1
565
+ top_height = min(1, maxrow - thumb_height)
566
566
 
567
567
  # Bottom part is remaining space
568
568
  bottom_height = maxrow - thumb_height - top_height
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: urwid
3
- Version: 3.0.1
3
+ Version: 3.0.2
4
4
  Summary: A full-featured console (xterm et al.) user interface library
5
5
  Author-email: Ian Ward <ian@excess.org>
6
6
  License: LGPL-2.1-only
@@ -11,7 +11,7 @@ urwid/split_repr.py,sha256=pXzuddzQ4RnfIl537Gvoe8PVaBRHCPnxgdYvKK0qm8k,3899
11
11
  urwid/str_util.py,sha256=oQVTyDWAIRuCsNl_jeAxX1zbldWgU58MMU3YPWKlFbA,10823
12
12
  urwid/text_layout.py,sha256=EqsT64CUfP_QPTnhyVy4erEhXaCShxGqynBm6xS5qpI,22792
13
13
  urwid/util.py,sha256=cZ2qtutEThZSq4FGu3DMX2Tds0CXXRghn8b8QQasR7w,15337
14
- urwid/version.py,sha256=LoHm4tYT8EC9S2qaIOxZkFh7b3UUZ5jNAQr7bVyLo6Q,511
14
+ urwid/version.py,sha256=NpXuePaG57YwfLkFhnPEM1yLuLWOsEkvJLB1sQvObCw,511
15
15
  urwid/vterm.py,sha256=vzzgf1P8M5j6uEePSEMVhQVMzqGeVnJc1L6DZCH9kRg,57744
16
16
  urwid/wimp.py,sha256=CRpUWYsrCSrnTX1AH7FnBI_8EvLHHy6eypg8-zno5MI,572
17
17
  urwid/display/__init__.py,sha256=y90WbHPNRHlimPrXhzsSfFsBbBHy8QErmB1y4Xza-xo,1732
@@ -60,15 +60,15 @@ urwid/widget/padding.py,sha256=zz1fy4b0hWTpEjR4uDlJnzAbm-TuiUcDWM9IusubvN0,19853
60
60
  urwid/widget/pile.py,sha256=RubgdaaGcShT-w8tiXVpTTJY_xK8p83uyijv44BgejY,39705
61
61
  urwid/widget/popup.py,sha256=waiQ9y7Ted2YWF5yT2Hz2I_KutvuFbeobemrdCsFdXA,5961
62
62
  urwid/widget/progress_bar.py,sha256=zwiQboBvo16p18j_5u6Sd8pVmsYnjragE8Yk6cq_qfc,4616
63
- urwid/widget/scrollable.py,sha256=K_-Ys2JagMM_wpohpbCJ4BVnSwXSUINnxD_pWjgX-MM,24423
63
+ urwid/widget/scrollable.py,sha256=U7DoOIwr5CE4B-U0kM-9Pg0xpXawOahwJrdiTYQRilw,24451
64
64
  urwid/widget/solid_fill.py,sha256=NZRDSRK0lP4r7gXcKDgVaKEoeOcWvtrY5k2aueQEEL4,1260
65
65
  urwid/widget/text.py,sha256=jy15hL6rCBoJdZviq2jJ-i9eO6vEcxvzCIVAZs12AUw,12187
66
66
  urwid/widget/treetools.py,sha256=NehR7ELL2vvBHIlwtRCGyTfPLdx0Uis5opufC3xNkcE,17031
67
67
  urwid/widget/widget.py,sha256=uWHGpOueiDa8wJykFhR38wHV9Wg59E2lENDrWZZm9xI,26432
68
68
  urwid/widget/widget_decoration.py,sha256=zqB41ytmZo8-kSp4iurx06ax-t_IEI9GLbEzn7ZdqsU,4621
69
69
  urwid/widget/wimp.py,sha256=4wfzTQBLMbhicSlL64hBPb-1W5FAFrIKfb43i10MKSY,27305
70
- urwid-3.0.1.dist-info/licenses/COPYING,sha256=NrbT-keRaUP9X-wxPFhHhJRgR-wTN6eLRA5ZkstZX4k,26434
71
- urwid-3.0.1.dist-info/METADATA,sha256=SK5H3Ky7ALmNNfchNIoOInXiJmdbJonxdBzPBkGZYs4,10965
72
- urwid-3.0.1.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
73
- urwid-3.0.1.dist-info/top_level.txt,sha256=AwxQA43kNkjHbhYELXHBKrQ01X5CR2KnDzU07cVqilY,6
74
- urwid-3.0.1.dist-info/RECORD,,
70
+ urwid-3.0.2.dist-info/licenses/COPYING,sha256=NrbT-keRaUP9X-wxPFhHhJRgR-wTN6eLRA5ZkstZX4k,26434
71
+ urwid-3.0.2.dist-info/METADATA,sha256=UywRFdnHl-6jpdUO8zwoScmkYQE5rV7Lt10xoUjYLCs,10965
72
+ urwid-3.0.2.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
73
+ urwid-3.0.2.dist-info/top_level.txt,sha256=AwxQA43kNkjHbhYELXHBKrQ01X5CR2KnDzU07cVqilY,6
74
+ urwid-3.0.2.dist-info/RECORD,,
File without changes