12.07.2015 Views

Tkinter reference: A GUI for Python

Tkinter reference: A GUI for Python

Tkinter reference: A GUI for Python

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

wrapxscrollcommandyscrollcommandMethods on text widgets:.compare ( index1, op, index2 )This option controls the display of lines that aretoo wide. With the default behavior, value CHAR,any line that gets too long will be broken at anycharacter. Set the option to WORD and it will breakthe line after the last word that will fit. If you wantto be able to create lines that are too long to fit inthe window, set this option to NONE and provide ahorizontal scrollbar.To make the text widget horizontally scrollable, setthis option to the .set method of the horizontalscrollbar.To make the text widget vertically scrollable, set thisoption to the .set method of the vertical scrollbar.Compares the positions of two indices in the text widget, and returns true if the relationalop holds between index1 and index2. The op specifies what comparison to use, one of. For example, <strong>for</strong> a text widget t,t.compare("2.0", "

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!