wxPython 设备上下文子类(Device Context) subclasses 简介

时间:2017-08-17 10:19:30
【文件属性】:

文件名称:wxPython 设备上下文子类(Device Context) subclasses 简介

文件大小:48KB

文件格式:PDF

更新时间:2017-08-17 10:19:30

wxPython, DC, 设备上下文, 子类, 简介

Table 6.1 displays a field guide to the subclasses of wx.DC and their usage. Device contexts, which are used to draw to a wxPython widget, should always be locally created, temporary objects, and should not be kept between method calls in an instance variable, global variable, or other manner. On some platforms device contexts are a limited resource and so holding references to a wx.DC could cause your program to be unstable. Because of the way wxPython uses device contexts internally, there are several subtly different wx.DC subclasses used for drawing in a widget. Chapter 12 will explain these differences in more detail.


网友评论