gui coding techniques "building better mousetrapthis continues our look at building guis with python and the tkinter library by presenting collection of more advanced gui programming patterns and techniques in the preceding three we explored all the fundamentals of tkinter itself hereour goal is to put them to work to add higher-level structures that will be useful in larger programs that isour focus shifts here to writing code of our own which implements utility above and beyond the basic tkinter toolkit--utility that we'll actually find useful in more complete examples later in the book some of the techniques we will be studying in this are as followsproviding common gui operations in "mixinclasses building menus and toolbars from data structure templates adding gui interfaces to command-line tools redirecting input and output streams to gui widgets reloading gui callback handlers on the fly wrapping up and automating top-level window interfaces using threads and queues to avoiding blocking in guis popping up gui windows on demand from non-gui programs adding guis as separate programs with sockets and pipes as with other in this bookthis has dual agenda--not only will we be studying gui programmingbut we'll also be learning more about general python development concepts such as object-oriented programming (oopand code reuse as we'll seeby coding gui tools in pythonit' easy to apply them in wide variety of contexts and programs as segue to the next this one also closes with look at the pydemos and pygadgets launcher toolbars--guis used to start larger gui examples although most