(Figure 9-21); in a full-blown editor, you might want to save this string away to repeat
the find again (we will, in Chapter 11’s more full-featured PyEdit example). Quit op-
erations reuse the verifying Quit button component we coded in Chapter 8 yet again;
code reuse means never having to say you’re quitting without warning...
Figure 9-20. Save pop-up dialog on Windows
Figure 9-21. Find pop-up dialog
Using the clipboard
Besides Text widget operations, Example 9-11 applies the tkinter clipboard interfaces
in its cut-and-paste functions. Together, these operations allow you to move text within
a file (cut in one place, paste in another). The clipboard they use is just a place to store
data temporarily—deleted text is placed on the clipboard on a cut, and text is inserted
from the clipboard on a paste. If we restrict our focus to this program alone, there really
536 | Chapter 9: A tkinter Tour, Part 2