kopia lustrzana https://github.com/peterhinch/micropython-micro-gui
widgets/dialog.py Improve widget appearance,
rodzic
994c55a1e6
commit
e5a3dcaa37
|
@ -44,6 +44,7 @@ class DialogBox(Window):
|
||||||
for text, color in elements:
|
for text, color in elements:
|
||||||
Button(writer, *self.locn(row, col), height = buttonheight, width = buttonwidth,
|
Button(writer, *self.locn(row, col), height = buttonheight, width = buttonwidth,
|
||||||
textcolor = BLACK, bgcolor = color,
|
textcolor = BLACK, bgcolor = color,
|
||||||
|
fgcolor = color, bdcolor = color,
|
||||||
text = text, shape = RECTANGLE,
|
text = text, shape = RECTANGLE,
|
||||||
callback = back, args = (text,))
|
callback = back, args = (text,))
|
||||||
col += buttonwidth + gap
|
col += buttonwidth + gap
|
||||||
|
|
Plik binarny nie jest wyświetlany.
Przed Szerokość: | Wysokość: | Rozmiar: 93 KiB Po Szerokość: | Wysokość: | Rozmiar: 97 KiB |
Ładowanie…
Reference in New Issue