[Users] [Python] Bug (?) when trying to get buffer
Christoph Klassen
christoph.klassen at intevation.de
Wed Apr 6 05:39:56 UTC 2022
Hello,
when I execute this command
buffer = clawsmail.compose_window.text.get_buffer()
I get the following error:
AttributeError: 'GtkTextView' object has no attribute 'get_buffer'
But, when I try to get the buffer with this command
buffer = clawsmail.compose_window.text.get_property('buffer')
it's no problem.
Do you have an idea why it is like this? The method should work.
The example "Macro-Expansion" for the compose window also contains the
method get_buffer() and if that would not work it probably would not be
an example ;-) I could also find this method in the documentation of
Gtk.
I'm using Claws Mail 4.1.0
Greetings,
Christoph
More information about the Users
mailing list