value in DictEntry.set_value could be None
set_text must always be called with a string.
This commit is contained in:
1 parent
18a288df79
commit
852a5303d4
1 file changed
+1
-1
@@ -45,7 +45,7 @@ class DictEntry(object):
|
||||
return self.widget.get_text()
|
||||
|
||||
def set_value(self, value):
|
||||
return self.widget.set_text(value)
|
||||
return self.widget.set_text(value or '')
|
||||
|
||||
def set_readonly(self, readonly):
|
||||
self.widget.set_editable(not readonly)
|
||||
|
||||
Reference in new issue
Block a user