google-code-export / tovid

Automatically exported from code.google.com/p/tovid
1 stars 0 forks source link

Exception when clearing the contents of a Color entry box #123

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In tovid gui, when backspacing the hexadecimal color code in a Color 
widget, an exception may occur:

Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib64/python2.6/lib-tk/Tkinter.py", line 1410, in __call__
    return self.func(*args)
  File "/usr/lib64/python2.6/site-packages/libtovid/metagui/control.py", 
line 354, in _callback
    callback(self)
  File "/usr/lib64/python2.6/site-packages/libtovid/metagui/control.py", 
line 475, in update_color
    self.set(color)
  File "/usr/lib64/python2.6/site-packages/libtovid/metagui/control.py", 
line 495, in set
    self.indicate_color(self.hexcolor(color))
  File "/usr/lib64/python2.6/site-packages/libtovid/metagui/control.py", 
line 522, in indicate_color
    r, g, b = self._hex_to_rgb(bg_color)
  File "/usr/lib64/python2.6/site-packages/libtovid/metagui/control.py", 
line 569, in _hex_to_rgb
    return (int(red, 16), int(green, 16), int(blue, 16))
ValueError: invalid literal for int() with base 16: ''

Original issue reported on code.google.com by wapcaplet88 on 7 Jun 2010 at 3:46

GoogleCodeExporter commented 9 years ago

Original comment by wapcaplet88 on 7 Jun 2010 at 3:56