gah - won't let me save after changing some of the preferences...
will have another play -
something about the line "for i in range(self.columns.count())]" that seems to be blowing it up...
, line 75, in options - AttributeError: 'unicode' object has no attribute 'toString'
Code:
def options(self):
'''
Return a dict of current options
'''
opts = {}
all_formats = [unicode(self.columns.item(i).data(Qt.UserRole).toString())
for i in range(self.columns.count())]
enabled_formats = [unicode(self.columns.item(i).data(Qt.UserRole).toString())
for i in range(self.columns.count()) if self.columns.item(i).checkState()==Qt.Checked]
opts['kindle_supported_formats'] = all_formats
opts['kindle_enabled_formats'] = enabled_formats
return opts