Add keywords to TuiWindow.write

The gdb docs promise that methods with more than two or more arguments
will accept keywords.  However, I found that TuiWindow.write didn't
allow them.  This patch adds the missing support.
This commit is contained in:
Tom Tromey
2023-12-12 22:49:52 -07:00
parent 11e73fe731
commit 1f1c84ddf7
2 changed files with 8 additions and 4 deletions

View File

@@ -32,7 +32,8 @@ class TestWindow:
self.win.erase()
w = self.win.width
h = self.win.height
self.win.write("Test: " + str(self.count) + " " + str(w) + "x" + str(h))
self.win.write(string="Test: " + str(self.count) + " " + str(w) + "x" + str(h),
full_window=False)
self.count = self.count + 1
# Tries to delete the title attribute. GDB will throw an error.