Skip to content

Instantly share code, notes, and snippets.

@mortymacs
Created June 9, 2017 11:42
Show Gist options
  • Select an option

  • Save mortymacs/809a69c8a737893f70aac177ba056647 to your computer and use it in GitHub Desktop.

Select an option

Save mortymacs/809a69c8a737893f70aac177ba056647 to your computer and use it in GitHub Desktop.
Get GTK TextView Value (Content) by Python
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
input = Gtk.TextView()
value = item.get_buffer().get_text(
item.get_buffer().get_start_iter(),
item.get_buffer().get_end_iter(),
True
)
print(value)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment