]>
Commit | Line | Data |
---|---|---|
73adcb01 | 1 | Recent Changes for wxPython |
8eda5e35 | 2 | ===================================================================== |
6d75ea8f | 3 | |
857878df | 4 | 2.5.2.2 |
95fed4d8 RD |
5 | ------- |
6 | ||
7 | wx.ADJUST_MINSIZE is now the default behaviour for window items in | |
ffcb969e RD |
8 | sizers. This means that the item's GetMinSize and/or GetBestSize will |
9 | be called when calculating layout and the return value from that will | |
cb8f28ba RD |
10 | be used for the minimum size used by the sizer. The wx.FIXED_MINSIZE |
11 | flag was added that will cause the sizer to use the old behaviour in | |
12 | that it will *not* call the window's methods to determine the new best | |
13 | size, instead the minsize that the window had when added to the sizer | |
da2c7672 RD |
14 | (or the size the window was created with) will always be used. Please |
15 | see the Sizers section in the Migration Guide for more details. | |
cb8f28ba | 16 | |
c878ceea RD |
17 | Added new MaskedEditControl code from Will Sadkin. The modules are |
18 | now locaed in their own sub-package, wx.lib.masked. Demos updated. | |
19 | ||
d7403ad2 RD |
20 | The changes that implemented the incompatible wx.DC methods in 2.5.1.5 |
21 | have been reverted. The wx.DC methods are now compatible with the 2.4 | |
22 | implemetation. In addition a set of renamed methods have been added | |
23 | that take wx.Point and/or wx.Size objects instead of individual | |
24 | parameters. | |
25 | ||
5841276a RD |
26 | Added wx.lib.mixins.listctrl.TextEditMixin, a mixin class that allows |
27 | all columns of a wx.ListCtrl in report mode to be edited. | |
ba938c3d | 28 | |
165e6ca3 RD |
29 | Deprecated the wx.iewin module. |
30 | ||
31 | Deprecated the wx.Sizer.AddWindow, AddSizer, AddSpacer methods as well | |
32 | as their Insert* and Prepend* counterparts. | |
33 | ||
969d9b6f RD |
34 | Added a generic StaticBitmap class in wx.lib.statbmp for the same |
35 | reasons that stattext was created, so it could be mouse sensitive on | |
36 | all platforms like normal windows. Also updated stattext.py and | |
37 | buttons.py to handle attribute (font & colour) defaults and | |
38 | inheritance the new way. If you have custom controls of your own you | |
39 | should review stattxt.py or one of the others to see how it is to be | |
40 | done. | |
165e6ca3 | 41 | |
a3150741 RD |
42 | wx.InitAllImageHandlers is now an empty function that does nothing but |
43 | exist for backwards compatibility. The C++ version is now called | |
44 | automatically when wxPython is initialized. Since all the handlers | |
45 | are included in the wxWidgets shared library anyway, this imposes only | |
46 | a very small amount of overhead and removes several unneccessary | |
47 | problems. | |
48 | ||
d1e05453 | 49 | Replaced wx/lib/pubsub.py with a version that uses weak references to |
89c876de RD |
50 | track the subscribers, plus other fixes/additions. Thanks go to |
51 | Oliver Schoenborn and Robb Shecter. | |
d1e05453 | 52 | |
89c876de RD |
53 | wxGTK now uses gtk_init_check so wxPython can raise an exception if |
54 | there is no DISPLAY available or other initializaion problem. | |
55 | ||
56 | wx.GetKeyState now has an implementation for wxGTK and is able to | |
57 | detect the up/down or toggle state of modifier and toggle keys. | |
58 | ||
59 | The LC_NUMERIC locale is now reset back to "C" (compatibility) when | |
60 | running on wxGTK to work around the fact that GTK requires the locale | |
61 | to be set to the system settings but Python depends on LC_NUMERIC | |
62 | remaining compatible with "C". | |
a3150741 | 63 | |
28eab81f RD |
64 | Switched gizmos.TreeListCtrl to the newer version of the code from the |
65 | wxCode project. | |
66 | ||
f847103a RD |
67 | OGL is dead! LONG LIVE OGL! (Oops, sorry. A bit of my dramatic side |
68 | leaked out there...) The wx.ogl module has been deprecated in favor | |
69 | of the new Python port of the OGL library located at wx.lib.ogl | |
70 |