Explorar o código

fix missing import in example

Weimin Wang %!s(int64=4) %!d(string=hai) anos
pai
achega
c3eb38e83f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      pywebio/pin.py

+ 1 - 0
pywebio/pin.py

@@ -100,6 +100,7 @@ Pin utils
         :name: set-pin-value
         :summary: Use the `pin` object to set the value of pin widget
 
+        import time  # ..demo-only
         put_input('counter', type='number', value=0)
 
         while True: