Created
June 9, 2017 11:42
-
-
Save mortymacs/809a69c8a737893f70aac177ba056647 to your computer and use it in GitHub Desktop.
Get GTK TextView Value (Content) by Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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