[Python编程(第4版)].(Programming.Python.4th.Edition).Mark.Lutz.文字版
pass else: if not line: # stop loop at end-of-file output.write(term) # else display next line return output.write(line) root.af ...
Although it is more complex and requires thread support, Example 10-29’s lack of blocking makes this redirectedGuiShellCmd much ...
C:\...\PP4E\Gui\Tools> python >>> from tkinter import Tk >>> from pipe_gui3 import redirectedGuiShellCmd &g ...
larger GUI examples coming up, with a quick look at scripts that launch them auto- matically, and allow you to sample some of wh ...
at the top of the examples package, though, make sure your PYTHONPATH system variable is set to include the directory containing ...
As pictured in Figure 10-17, PyDemos also constructs two pop-up windows when but- tons at the bottom of the main window are pres ...
examples aren't GUI-based, and so aren't listed here. Also see: PyGadgets.py, a simpler script for starting programs in non-dem ...
build message window Stat = PopupWindow('PP4E demo info') Stat.protocol('WM_DELETE_WINDOW', lambda:0) # ignore wm delete Info = ...
demoButton(name='PyView', what='Image slideshow, plus note editor', doit='Gui/SlideShow/slideShowPlus.py Gui/gifs', code=['Gui/T ...
Figure 10-19. PyGadgets launcher bar Because of its different role, PyGadgets takes a more data-driven approach to building the ...
for (name, commandLine) in mytools: PortableLauncher(name, commandLine)() # call now to start now print('One moment please...') ...
This script is the file my desktop shortcut invokes, because I prefer to run gadget GUIs on demand. On many platforms, you can d ...
CHAPTER 11 Complete GUI Programs “Python, Open Source, and Camaros” This chapter concludes our look at building GUIs with Python ...
As in Part II’s Chapter 6, I’ve pulled the examples in this chapter from my own library of Python programs that I really use. Fo ...
can sometimes approach the utility of traditional GUIs, albeit at substantial cost in software complexity and dependencies. Espe ...
An analogy might help underscore the importance of scriptability. There are still a few of us who remember a time when it was co ...
PyEdit is sufficiently powerful and robust to have served as the primary tool for coding most of the examples in this book. PyEd ...
window’s default appearance running in Windows 7, after opening PyEdit’s own source code file. The main part of this window is a ...
Dialogs PyEdit pops up a variety of modal and nonmodal dialogs, both standard and custom. Figure 11-2 shows the custom and nonmo ...
simpleShell.py in the PyEdit’s directory if you wish to experiment with this), though you need a bit more to handle multiple-lin ...
«
31
32
33
34
35
36
37
38
39
40
»
Free download pdf