Add StyleOption class for reports and use it in WebCal.

svn: r10651
This commit is contained in:
Brian Matherly
2008-04-29 04:47:50 +00:00
parent 39c8d63029
commit 5181e073e9
5 changed files with 114 additions and 24 deletions

View File

@@ -130,7 +130,8 @@ class StyleListDisplay:
def on_ok_clicked(self, obj):
"""Called with the OK button is clicked; Calls the callback task,
then saves the stylesheet."""
self.callback()
if self.callback is not None:
self.callback()
try:
self.sheetlist.save()
except IOError, msg: