Greets.

I just found out that pressing special characters like ctrl or shift
causes a ValueError at
pudding/control.py

line 480:       if chr(key) in string.printable:
because: chr() arg not in range(256)

I fixed this problem for myself by simply adding try/except
statements. As far as I know, capturing these special events isn't
necessary.

      try:
        if chr(key) in string.printable:
          self.value += chr(key)
          self.on_value_changed()
      except ValueError: return


Snaip

Reply via email to