kopia lustrzana https://github.com/peterhinch/micropython-micro-gui
dial.py: Fix Pointer color bug.
rodzic
30ffd8b23b
commit
e7332ef16a
|
@ -43,7 +43,8 @@ class Pointer:
|
||||||
self.color = None
|
self.color = None
|
||||||
|
|
||||||
def value(self, v=None, color=None):
|
def value(self, v=None, color=None):
|
||||||
self.color = color
|
if color is not None:
|
||||||
|
self.color = color
|
||||||
if v is not None:
|
if v is not None:
|
||||||
if isinstance(v, complex):
|
if isinstance(v, complex):
|
||||||
l = cmath.polar(v)[0]
|
l = cmath.polar(v)[0]
|
||||||
|
|
Ładowanie…
Reference in New Issue