Use get_edit_text to avoid trimming
This method returns only the text entered, without the caption.
This commit is contained in:
parent
5606d95c93
commit
37b4f00f6e
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ class StatusSource(urwid.Padding):
|
||||||
super().__init__(frame)
|
super().__init__(frame)
|
||||||
|
|
||||||
def save_json(self, button):
|
def save_json(self, button):
|
||||||
filename = self.filename_edit.get_text()[0][10:] # skip "Filename: "
|
filename = self.filename_edit.get_edit_text()
|
||||||
if filename:
|
if filename:
|
||||||
with open(filename, "w") as f:
|
with open(filename, "w") as f:
|
||||||
f.write(self.source)
|
f.write(self.source)
|
||||||
|
|
Loading…
Reference in a new issue