diff --git a/README.md b/README.md index 84816dc..f8801b8 100644 --- a/README.md +++ b/README.md @@ -2304,6 +2304,11 @@ value changes. This enables dynamic color change. ```python from gui.widgets.adjuster import Adjuster ``` +![Image](./images/adjusters.jpg) ![Image](./images/adj_vector.jpg) + +Four examples paired with `Label`s. An example of two `Adjuster` instances +setting a vector. + The `Adjuster` is a space saving version of the `Knob`. It is normally paired with a `Label` which provides user feedback of the value. It has a range of 0.0 to 1.0 and a visual arc of 270°. User code can provide arbitrary scaling diff --git a/gui/demos/adjust_vec.py b/gui/demos/adjust_vec.py index 82ab077..1054e51 100644 --- a/gui/demos/adjust_vec.py +++ b/gui/demos/adjust_vec.py @@ -27,7 +27,7 @@ class BaseScreen(Screen): wri = CWriter(ssd, font, GREEN, BLACK) col = 2 row = 2 - self.dial = Dial(wri, row, col, bdcolor=None) + self.dial = Dial(wri, row, col, bdcolor=None, style=Dial.COMPASS) self.vec = Pointer(self.dial) a = Adjuster(wri, row, self.dial.mcol + 2, fgcolor=BLUE, callback=self.phi_cb) Label(wri, row, a.mcol + 2, "ϕ", fgcolor=BLUE) diff --git a/images/adj_vector.jpg b/images/adj_vector.jpg new file mode 100644 index 0000000..d74fec0 Binary files /dev/null and b/images/adj_vector.jpg differ diff --git a/images/adjusters.jpg b/images/adjusters.jpg new file mode 100644 index 0000000..bdf39f5 Binary files /dev/null and b/images/adjusters.jpg differ