Changeset 852:fff6327db8e6 for src


Ignore:
Timestamp:
05/21/17 07:42:15 (8 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Utility function to get all the text in a text view.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/common.py

    r851 r852  
    647647
    648648#------------------------------------------------------------------------------
     649
     650def getTextViewText(textView):
     651    """Get the text from the given text view."""
     652    buffer = textView.get_buffer()
     653    return buffer.get_text(buffer.get_start_iter(), buffer.get_end_iter(), True)
     654
     655#------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.