dirkse hace 8 años
padre
commit
5ed9e8083f
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      matrix/pixelreceiver.py

+ 2 - 2
matrix/pixelreceiver.py

@@ -101,8 +101,8 @@ class Renderer(object):
             self.swap()
 
 
-    def fit_text(self, text, width=None, fade=None):
-        if width is None:
+    def fit_text(self, text, width=0, fade=0):
+        if width == 0:
             width = self.canvas.width
 
         ff = reversed(sorted(fonts.items(), key=lambda e: int(e[0].split('x')[0])))