urwid 2.6.13__py3-none-any.whl → 2.6.15__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.
- urwid/display/_posix_raw_display.py +2 -2
- urwid/version.py +2 -2
- urwid/widget/grid_flow.py +18 -8
- urwid/widget/listbox.py +12 -11
- urwid/widget/scrollable.py +1 -1
- {urwid-2.6.13.dist-info → urwid-2.6.15.dist-info}/METADATA +1 -1
- {urwid-2.6.13.dist-info → urwid-2.6.15.dist-info}/RECORD +10 -10
- {urwid-2.6.13.dist-info → urwid-2.6.15.dist-info}/WHEEL +1 -1
- {urwid-2.6.13.dist-info → urwid-2.6.15.dist-info}/COPYING +0 -0
- {urwid-2.6.13.dist-info → urwid-2.6.15.dist-info}/top_level.txt +0 -0
|
@@ -148,8 +148,8 @@ class Screen(_raw_display_base.Screen):
|
|
|
148
148
|
if not os.environ.get("TERM", "").lower().startswith("linux"):
|
|
149
149
|
return
|
|
150
150
|
|
|
151
|
-
m = Popen( # pylint: disable=consider-using-with
|
|
152
|
-
["/usr/bin/mev", "-e", "158"],
|
|
151
|
+
m = Popen( # noqa: S603 # pylint: disable=consider-using-with
|
|
152
|
+
["/usr/bin/mev", "-e", "158"],
|
|
153
153
|
stdin=PIPE,
|
|
154
154
|
stdout=PIPE,
|
|
155
155
|
close_fds=True,
|
urwid/version.py
CHANGED
urwid/widget/grid_flow.py
CHANGED
|
@@ -30,13 +30,18 @@ class GridFlowWarning(WidgetWarning):
|
|
|
30
30
|
|
|
31
31
|
class GridFlow(WidgetWrap[Pile], WidgetContainerMixin, WidgetContainerListContentsMixin):
|
|
32
32
|
"""
|
|
33
|
-
The GridFlow widget is a flow widget that renders all the widgets it
|
|
34
|
-
|
|
35
|
-
bottom.
|
|
33
|
+
The GridFlow widget is a flow widget that renders all the widgets it contains the same width,
|
|
34
|
+
and it arranges them from left to right and top to bottom.
|
|
36
35
|
"""
|
|
37
36
|
|
|
38
37
|
def sizing(self) -> frozenset[Sizing]:
|
|
39
|
-
|
|
38
|
+
"""Widget sizing.
|
|
39
|
+
|
|
40
|
+
..note:: Empty widget sizing is limited to the FLOW due to no data for width.
|
|
41
|
+
"""
|
|
42
|
+
if self:
|
|
43
|
+
return frozenset((Sizing.FLOW, Sizing.FIXED))
|
|
44
|
+
return frozenset((Sizing.FLOW,))
|
|
40
45
|
|
|
41
46
|
def __init__(
|
|
42
47
|
self,
|
|
@@ -422,14 +427,16 @@ class GridFlow(WidgetWrap[Pile], WidgetContainerMixin, WidgetContainerListConten
|
|
|
422
427
|
def _get_maxcol(self, size: tuple[int] | tuple[()]) -> int:
|
|
423
428
|
if size:
|
|
424
429
|
(maxcol,) = size
|
|
425
|
-
if maxcol < self.cell_width:
|
|
430
|
+
if self and maxcol < self.cell_width:
|
|
426
431
|
warnings.warn(
|
|
427
432
|
f"Size is smaller than cell width ({maxcol!r} < {self.cell_width!r})",
|
|
428
433
|
GridFlowWarning,
|
|
429
434
|
stacklevel=3,
|
|
430
435
|
)
|
|
431
|
-
|
|
436
|
+
elif self:
|
|
432
437
|
maxcol = len(self) * self.cell_width + (len(self) - 1) * self.h_sep
|
|
438
|
+
else:
|
|
439
|
+
maxcol = 0
|
|
433
440
|
return maxcol
|
|
434
441
|
|
|
435
442
|
def get_display_widget(self, size: tuple[int] | tuple[()]) -> Divider | Pile:
|
|
@@ -525,7 +532,7 @@ class GridFlow(WidgetWrap[Pile], WidgetContainerMixin, WidgetContainerListConten
|
|
|
525
532
|
|
|
526
533
|
def keypress(
|
|
527
534
|
self,
|
|
528
|
-
size: tuple[int], # type: ignore[override]
|
|
535
|
+
size: tuple[int] | tuple[()], # type: ignore[override]
|
|
529
536
|
key: str,
|
|
530
537
|
) -> str | None:
|
|
531
538
|
"""
|
|
@@ -545,7 +552,10 @@ class GridFlow(WidgetWrap[Pile], WidgetContainerMixin, WidgetContainerListConten
|
|
|
545
552
|
) -> tuple[int, int]:
|
|
546
553
|
if size:
|
|
547
554
|
return super().pack(size, focus)
|
|
548
|
-
|
|
555
|
+
if self:
|
|
556
|
+
cols = len(self) * self.cell_width + (len(self) - 1) * self.h_sep
|
|
557
|
+
else:
|
|
558
|
+
cols = 0
|
|
549
559
|
return cols, self.rows((cols,), focus)
|
|
550
560
|
|
|
551
561
|
def rows(self, size: tuple[int], focus: bool = False) -> int:
|
urwid/widget/listbox.py
CHANGED
|
@@ -645,17 +645,18 @@ class ListBox(Widget, WidgetContainerMixin):
|
|
|
645
645
|
rows = 0
|
|
646
646
|
|
|
647
647
|
focused_w, idx = self.body.get_focus()
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
648
|
+
if focused_w:
|
|
649
|
+
rows += focused_w.rows((cols,), focus)
|
|
650
|
+
|
|
651
|
+
prev, pos = self._body.get_prev(idx)
|
|
652
|
+
while prev is not None:
|
|
653
|
+
rows += prev.rows((cols,), False)
|
|
654
|
+
prev, pos = self._body.get_prev(pos)
|
|
655
|
+
|
|
656
|
+
next_, pos = self.body.get_next(idx)
|
|
657
|
+
while next_ is not None:
|
|
658
|
+
rows += next_.rows((cols,), True)
|
|
659
|
+
next_, pos = self._body.get_next(pos)
|
|
659
660
|
|
|
660
661
|
self._rows_max_cached = rows
|
|
661
662
|
|
urwid/widget/scrollable.py
CHANGED
|
@@ -11,11 +11,11 @@ urwid/split_repr.py,sha256=pXzuddzQ4RnfIl537Gvoe8PVaBRHCPnxgdYvKK0qm8k,3899
|
|
|
11
11
|
urwid/str_util.py,sha256=1ss-LHAhjXTynTVBcoSgYWIpBeN_RirqHYhP7fq7MrA,10844
|
|
12
12
|
urwid/text_layout.py,sha256=lHiGfo7clmwHt5dMl_AaQSs2ov9IbY9JySTATZBm7h0,22821
|
|
13
13
|
urwid/util.py,sha256=pGXnma03_IBx3v6_qN9cDWPXPj_YjkhQ9IxLjm_0TpU,15747
|
|
14
|
-
urwid/version.py,sha256=
|
|
14
|
+
urwid/version.py,sha256=Jq3FXTZdDD6Bn32iZg7aPPgjQwvpbgKC1G9_06DDn4I,413
|
|
15
15
|
urwid/vterm.py,sha256=q9-8dxJpVr_7a0Bj_z_FYDiRgzos3IS17BjhYcy1RDw,58410
|
|
16
16
|
urwid/wimp.py,sha256=o1YsjL_tBLXba8ZRr1MTHH0poLSlXT_atY3-uD_Ualg,567
|
|
17
17
|
urwid/display/__init__.py,sha256=y90WbHPNRHlimPrXhzsSfFsBbBHy8QErmB1y4Xza-xo,1732
|
|
18
|
-
urwid/display/_posix_raw_display.py,sha256=
|
|
18
|
+
urwid/display/_posix_raw_display.py,sha256=WQ2ox70Y5Bs3sM_kvSC-LvXFz6J74VVwMlqH9NtiY84,14501
|
|
19
19
|
urwid/display/_raw_display_base.py,sha256=JSkF_HcPsto5YxF7NWm2vYLb6nE72AlS7SOCah8woZw,33600
|
|
20
20
|
urwid/display/_web.css,sha256=6HarEsIspH2egt51HSrgI8Yl2lGi-DbziWOdS4RHNlk,359
|
|
21
21
|
urwid/display/_web.js,sha256=aWEOQ4EsADsiNgdw-zHEUMCRD2bnfR8M1mu4dOc2Tqk,12947
|
|
@@ -51,24 +51,24 @@ urwid/widget/divider.py,sha256=cM0gWHAqBz7E8l52CGEWWDMSVQkPNDjwy-t3ptbmh2s,3251
|
|
|
51
51
|
urwid/widget/edit.py,sha256=qgVYeg_hX6tqRUiuLQkYwYKmWcfVLrLzAG1a5Au6S-w,23732
|
|
52
52
|
urwid/widget/filler.py,sha256=EEnyAawdKXuwf79pErfNuvqsU1SVTutcMUrwWkU4wfo,14665
|
|
53
53
|
urwid/widget/frame.py,sha256=AOe4FwjvwcIwrpXqyZkCwSZWwAALNl1XRMAKx6ZXYWs,21834
|
|
54
|
-
urwid/widget/grid_flow.py,sha256=
|
|
54
|
+
urwid/widget/grid_flow.py,sha256=PNgs6YN3-cE5ZLlPns_5rwxrSMynB7T5BZvKohSjiPA,21817
|
|
55
55
|
urwid/widget/line_box.py,sha256=V750xiZtkw6_uRXLhNY91ER3pXwwrZstVv_IJUZd_YY,6884
|
|
56
|
-
urwid/widget/listbox.py,sha256=
|
|
56
|
+
urwid/widget/listbox.py,sha256=G6bucNwh0HWiqiyRYsNqfZvWRQz0hBOyxDqpt3DyRXU,74454
|
|
57
57
|
urwid/widget/monitored_list.py,sha256=mZUPYB1yhuKN6su6_VjmoiE0LlTXsYxkH14pbif0tbc,19264
|
|
58
58
|
urwid/widget/overlay.py,sha256=7EtTHOomIF4xzwYiY7SiMCQZF2IHrmO88YeosFOMFo0,34505
|
|
59
59
|
urwid/widget/padding.py,sha256=pBXQsnkySV1GXgveg2Ivm6SCqHiGa2YkYSjXaoCUIHk,21334
|
|
60
60
|
urwid/widget/pile.py,sha256=aIzKYNrSQtbHVk_bn2PElHUiSdsO_NKnL4mTu-sXm4I,38628
|
|
61
61
|
urwid/widget/popup.py,sha256=vw9_S1UC6UMy5Roc4qK8NXgH5_dDGxoHmpDAi_u9wsI,5974
|
|
62
62
|
urwid/widget/progress_bar.py,sha256=HRnIu2V2_4wgsnAdrhK-GVVToyLaXRH0gtlkWllA4Mo,4767
|
|
63
|
-
urwid/widget/scrollable.py,sha256=
|
|
63
|
+
urwid/widget/scrollable.py,sha256=Smn5X1wvxm3juqFZGOOKREZS4eD4PIyZLeqWAVuAlos,24542
|
|
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=5s3Dnp2PCz4wQccutmdvsTTbAROJMLehXe4moB5POY0,17387
|
|
67
67
|
urwid/widget/widget.py,sha256=A0ZjvDjLqhdzelPFC96Ozo1voIoGkxftNmJh8X1IyNI,29557
|
|
68
68
|
urwid/widget/widget_decoration.py,sha256=6eEPvtF7wk2n1csIBWrnXAosprFl2pZiQ7SoCpwKnJM,5736
|
|
69
69
|
urwid/widget/wimp.py,sha256=4wfzTQBLMbhicSlL64hBPb-1W5FAFrIKfb43i10MKSY,27305
|
|
70
|
-
urwid-2.6.
|
|
71
|
-
urwid-2.6.
|
|
72
|
-
urwid-2.6.
|
|
73
|
-
urwid-2.6.
|
|
74
|
-
urwid-2.6.
|
|
70
|
+
urwid-2.6.15.dist-info/COPYING,sha256=NrbT-keRaUP9X-wxPFhHhJRgR-wTN6eLRA5ZkstZX4k,26434
|
|
71
|
+
urwid-2.6.15.dist-info/METADATA,sha256=eKwCcXLLsemMr31tTwqUNhzVblNUGQNvLHtbey9EWLw,11043
|
|
72
|
+
urwid-2.6.15.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
|
|
73
|
+
urwid-2.6.15.dist-info/top_level.txt,sha256=AwxQA43kNkjHbhYELXHBKrQ01X5CR2KnDzU07cVqilY,6
|
|
74
|
+
urwid-2.6.15.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|