File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 12
12
import board
13
13
import displayio
14
14
from displayio_gauge import Gauge
15
- from displayio_effects import fluctuation_effect
15
+ from displayio_effects import WidgetType , fluctuation_effect
16
16
17
17
display = board .DISPLAY
18
18
27
27
main_group .append (bg_sprite )
28
28
display .show (main_group )
29
29
30
- fluctuation_effect .hook_fluctuation_effect (Gauge , "level" )
30
+ fluctuation_effect .hook_fluctuation_effect (Gauge , WidgetType . GAUGE )
31
31
32
32
my_gauge = Gauge (
33
33
x = 90 ,
Original file line number Diff line number Diff line change 11
11
import displayio
12
12
import terminalio
13
13
from displayio_dial import Dial
14
- from displayio_effects import fluctuation_effect
14
+ from displayio_effects import WidgetType , fluctuation_effect
15
15
16
16
# Fonts used for the Dial tick labels
17
17
tick_font = terminalio .FONT
26
26
maximum_value = 100
27
27
28
28
# Hook in the throttle effect for the Dial widget
29
- fluctuation_effect .hook_fluctuation_effect (Dial , "value" )
29
+ fluctuation_effect .hook_fluctuation_effect (Dial , WidgetType . DIAL )
30
30
31
31
# Create a Dial widget
32
32
my_dial = Dial (
You can’t perform that action at this time.
0 commit comments