]> git.saurik.com Git - wxWidgets.git/blame - wxPython/docs/CHANGES.txt
Don't need to adjust the position for HitTest any longer
[wxWidgets.git] / wxPython / docs / CHANGES.txt
CommitLineData
73adcb01 1Recent Changes for wxPython
8eda5e35 2=====================================================================
6d75ea8f 3
857878df 42.5.2.2
95fed4d8
RD
5-------
6
7wx.ADJUST_MINSIZE is now the default behaviour for window items in
ffcb969e
RD
8sizers. This means that the item's GetMinSize and/or GetBestSize will
9be called when calculating layout and the return value from that will
cb8f28ba
RD
10be used for the minimum size used by the sizer. The wx.FIXED_MINSIZE
11flag was added that will cause the sizer to use the old behaviour in
12that it will *not* call the window's methods to determine the new best
13size, instead the minsize that the window had when added to the sizer
14(or the size the window was created with) will always be used.
15
16Related to the above, when controls and some other window types are
17created either the size passed to the constructor, or their "best
18size" if an explicit size was not passed in, is set as the window's
19minimal size. For non top-level windows that hasn't meant much in the
20past, but now the sizers are sensitive to the window's minimal size.
21The key point to understand here is that it is no longer the window's
22size it has when added to the sizer that matters, but its minimal
23size. So you might have some issues to iron out if you create a
24control without a size and then set its size to something before
25adding it to the sizer. Since it's minimal size is probably not the
26size you set then the sizer will appear to be misbehaving. The fix is
27to either set the size when calling the window's constructor, or to
28reset the min size by calling SetSizeHints. You can call SetSizeHints
29at anytime to change the minsize of a window, just call the sizer's
30Layout method to redistribute the controls as needed.
31
c878ceea
RD
32Added new MaskedEditControl code from Will Sadkin. The modules are
33now locaed in their own sub-package, wx.lib.masked. Demos updated.
34
d7403ad2
RD
35The changes that implemented the incompatible wx.DC methods in 2.5.1.5
36have been reverted. The wx.DC methods are now compatible with the 2.4
37implemetation. In addition a set of renamed methods have been added
38that take wx.Point and/or wx.Size objects instead of individual
39parameters.
40
5841276a
RD
41Added wx.lib.mixins.listctrl.TextEditMixin, a mixin class that allows
42all columns of a wx.ListCtrl in report mode to be edited.
ba938c3d 43
165e6ca3
RD
44Deprecated the wx.iewin module.
45
46Deprecated the wx.Sizer.AddWindow, AddSizer, AddSpacer methods as well
47as their Insert* and Prepend* counterparts.
48
969d9b6f
RD
49Added a generic StaticBitmap class in wx.lib.statbmp for the same
50reasons that stattext was created, so it could be mouse sensitive on
51all platforms like normal windows. Also updated stattext.py and
52buttons.py to handle attribute (font & colour) defaults and
53inheritance the new way. If you have custom controls of your own you
54should review stattxt.py or one of the others to see how it is to be
55done.
165e6ca3 56
a3150741
RD
57wx.InitAllImageHandlers is now an empty function that does nothing but
58exist for backwards compatibility. The C++ version is now called
59automatically when wxPython is initialized. Since all the handlers
60are included in the wxWidgets shared library anyway, this imposes only
61a very small amount of overhead and removes several unneccessary
62problems.
63
d1e05453 64Replaced wx/lib/pubsub.py with a version that uses weak references to
89c876de
RD
65track the subscribers, plus other fixes/additions. Thanks go to
66Oliver Schoenborn and Robb Shecter.
d1e05453 67
89c876de
RD
68wxGTK now uses gtk_init_check so wxPython can raise an exception if
69there is no DISPLAY available or other initializaion problem.
70
71wx.GetKeyState now has an implementation for wxGTK and is able to
72detect the up/down or toggle state of modifier and toggle keys.
73
74The LC_NUMERIC locale is now reset back to "C" (compatibility) when
75running on wxGTK to work around the fact that GTK requires the locale
76to be set to the system settings but Python depends on LC_NUMERIC
77remaining compatible with "C".
a3150741 78
28eab81f
RD
79Switched gizmos.TreeListCtrl to the newer version of the code from the
80wxCode project.
81
f847103a
RD
82OGL is dead! LONG LIVE OGL! (Oops, sorry. A bit of my dramatic side
83leaked out there...) The wx.ogl module has been deprecated in favor
84of the new Python port of the OGL library located at wx.lib.ogl
85