NAUT 发表于 2025-3-30 11:51:26

http://reply.papertrans.cn/104/10317/1031617/1031617_51.png

MANIA 发表于 2025-3-30 14:02:29

,The Publish–Subscribe Pattern,tion. The basic idea for this is that you will create one or more listeners that are known as subscribers. The subscribers are listening for a specific message type that you can send via your publisher.

browbeat 发表于 2025-3-30 19:06:57

Creating Simple Widgets,to anyone who may have helped in the creation of my program. One cool feature wxPython provides is a custom AboutBox widget. I think it looks a little odd, so I created my own About box using the HtmlWindow widget. However, I’ll show how to do it both ways in this recipe.

onlooker 发表于 2025-3-30 21:36:28

Working with Events,button that does very similar things. Other times, you’ll want to bind a Close button and a Close menu item to the same event handler so you don’t have multiple functions that do the same thing. This followd the Don’t Repeat Yourself (DRY) Principle.

Itinerant 发表于 2025-3-31 02:36:52

Working with Frames,long the top that identifies the application. The wx.Frame class allows you to modify its styles in such a way that you can remove or disable various buttons and features. In this chapter, we will look at some of the ways that you can change the behavior of the wx.Frame widget.

没有贫穷 发表于 2025-3-31 07:20:48

http://reply.papertrans.cn/104/10317/1031617/1031617_56.png

APO 发表于 2025-3-31 09:27:59

Working with Sizers,ethod. However, this returns a list of SizerItem objects rather than a list of the actual widgets themselves. You can see the difference if you call a wx.Panel’s GetChildren() method which will actually give you a list of widgets.
页: 1 2 3 4 5 [6]
查看完整版本: Titlebook: wxPython Recipes; A Problem - Solution Mike Driscoll Book 2018 Mike Driscoll 2018 wxPython.Python.GUI.graphical user interface.graphics.wid