Skip to content

Commit 5f27e57

Browse files
penguinologAleksei Stepanov
and
Aleksei Stepanov
authored
Documentation: do not use FlowWidget as base class in examples (urwid#623)
`FlowWidget` is deprecated Co-authored-by: Aleksei Stepanov <[email protected]>
1 parent 7ab8347 commit 5f27e57

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/lcd_cf635.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,16 @@ class LCDRadioButton(urwid.RadioButton):
8181
reserve_columns = 1
8282

8383

84-
class LCDProgressBar(urwid.FlowWidget):
84+
class LCDProgressBar(urwid.Widget):
8585
"""
8686
The "progress bar" used by the horizontal slider for this device,
8787
using custom CGRAM characters
8888
"""
8989

9090
segments = "\x00\x01\x02\x03"
9191

92+
_sizing = frozenset([urwid.Sizing.FLOW])
93+
9294
def __init__(self, data_range, value):
9395
self.range = data_range
9496
self.value = value

0 commit comments

Comments
 (0)