I have a gtk.TextBuffer which is supposed to be cleared after pressing Enter, similar to the input box on most chat programs. I’m just setting the buffer back to a blank string. The newline character from Enter isn’t removed though, and a blank line ends up above the cursor during the next input. Moving the cursor to the first gtk.Iter doesn’t help.
I have a gtk.TextBuffer which is supposed to be cleared after pressing Enter, similar
Share
By default,
"gobject.connect()"callback is called before the default handler. You need to use"gobject.connect_after()".