kopia lustrzana https://github.com/peterhinch/micropython-micro-gui
Fix textbox bgcolor.
rodzic
92169717f3
commit
5f58a5cc45
|
@ -1355,7 +1355,7 @@ def tickcb(f, c):
|
||||||
```python
|
```python
|
||||||
from gui.widgets.dial import Dial, Pointer
|
from gui.widgets.dial import Dial, Pointer
|
||||||
```
|
```
|
||||||

|
 
|
||||||
|
|
||||||
A `Dial` is a passive widget. It presents a circular display capable of
|
A `Dial` is a passive widget. It presents a circular display capable of
|
||||||
displaying an arbitrary number of vectors; each vector is represented by a
|
displaying an arbitrary number of vectors; each vector is represented by a
|
||||||
|
|
|
@ -58,7 +58,7 @@ pargs = (2, 2, 124, 7) # Row, Col, Width, nlines
|
||||||
# Keyword
|
# Keyword
|
||||||
tbargs = {'fgcolor' : YELLOW,
|
tbargs = {'fgcolor' : YELLOW,
|
||||||
'bdcolor' : RED,
|
'bdcolor' : RED,
|
||||||
'bgcolor' : DARKGREEN,
|
'bgcolor' : BLACK,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -92,7 +92,7 @@ class Textbox(LinearIO):
|
||||||
wri.setcolor() # Restore defaults
|
wri.setcolor() # Restore defaults
|
||||||
|
|
||||||
def show(self):
|
def show(self):
|
||||||
if super().show():
|
if super().show(False):
|
||||||
self._print_lines()
|
self._print_lines()
|
||||||
|
|
||||||
def append(self, s, ntrim=None, line=None):
|
def append(self, s, ntrim=None, line=None):
|
||||||
|
|
BIN
images/dial.JPG
BIN
images/dial.JPG
Plik binarny nie jest wyświetlany.
Przed Szerokość: | Wysokość: | Rozmiar: 45 KiB Po Szerokość: | Wysokość: | Rozmiar: 60 KiB |
Plik binarny nie jest wyświetlany.
Po Szerokość: | Wysokość: | Rozmiar: 45 KiB |
Ładowanie…
Reference in New Issue