Use get_edit_text to avoid trimming

This method returns only the text entered, without the caption.
This commit is contained in:
Ivan Habunek 2023-02-02 09:50:34 +01:00
parent 5606d95c93
commit 37b4f00f6e
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class StatusSource(urwid.Padding):
super().__init__(frame)
def save_json(self, button):
filename = self.filename_edit.get_text()[0][10:] # skip "Filename: "
filename = self.filename_edit.get_edit_text()
if filename:
with open(filename, "w") as f:
f.write(self.source)