2009-09-21 11:07:19 |
Florian Heinle |
description |
Starting either pyroom 0.4.1 from the PPA, or the latest trunk retrieved just now with bzr branch lp:pyroom - crashes at startup with the following traceback:
Traceback (most recent call last):
File "/usr/bin/pyroom", line 38, in <module>
sys.exit(PyRoom.cmdline.main())
File "/usr/lib/python2.6/dist-packages/PyRoom/cmdline.py", line 65, in main
pyroom = BasicEdit(pyroom_config=pyroom_config)
File "/usr/lib/python2.6/dist-packages/PyRoom/basic_edit.py", line 355, in __init__
self.gui = GUI(pyroom_config, self)
File "/usr/lib/python2.6/dist-packages/PyRoom/gui.py", line 184, in __init__
self.apply_theme()
File "/usr/lib/python2.6/dist-packages/PyRoom/gui.py", line 233, in apply_theme
self.textbox.modify_bg(gtk.STATE_NORMAL, parse_color('textboxbg'))
File "/usr/lib/python2.6/dist-packages/PyRoom/gui.py", line 227, in <lambda>
parse_color = lambda x: gtk.gdk.color_parse(self.theme[x])
KeyError: 'textboxbg'
I'm using Ubuntu Jaunty AMD 64, Python 2.6.2. |
When upgrading the theme format, fallbacks like we use on preferences should be implemented, as to not crash PyRoom when things from older custom theme files are missing.
Original report: Starting either pyroom 0.4.1 from the PPA, or the latest trunk retrieved just now with bzr branch lp:pyroom - crashes at startup with the following traceback:
Traceback (most recent call last):
File "/usr/bin/pyroom", line 38, in <module>
sys.exit(PyRoom.cmdline.main())
File "/usr/lib/python2.6/dist-packages/PyRoom/cmdline.py", line 65, in main
pyroom = BasicEdit(pyroom_config=pyroom_config)
File "/usr/lib/python2.6/dist-packages/PyRoom/basic_edit.py", line 355, in __init__
self.gui = GUI(pyroom_config, self)
File "/usr/lib/python2.6/dist-packages/PyRoom/gui.py", line 184, in __init__
self.apply_theme()
File "/usr/lib/python2.6/dist-packages/PyRoom/gui.py", line 233, in apply_theme
self.textbox.modify_bg(gtk.STATE_NORMAL, parse_color('textboxbg'))
File "/usr/lib/python2.6/dist-packages/PyRoom/gui.py", line 227, in <lambda>
parse_color = lambda x: gtk.gdk.color_parse(self.theme[x])
KeyError: 'textboxbg'
I'm using Ubuntu Jaunty AMD 64, Python 2.6.2. |
|