]> git.saurik.com Git - wxWidgets.git/blame - wxPython/docs/CHANGES.txt
Docstrings for the sizers
[wxWidgets.git] / wxPython / docs / CHANGES.txt
CommitLineData
73adcb01 1Recent Changes for wxPython
8eda5e35 2=====================================================================
6d75ea8f 3
28eab81f 42.5.2.0
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
ba938c3d 32
c878ceea
RD
33Added new MaskedEditControl code from Will Sadkin. The modules are
34now locaed in their own sub-package, wx.lib.masked. Demos updated.
35
d7403ad2
RD
36The changes that implemented the incompatible wx.DC methods in 2.5.1.5
37have been reverted. The wx.DC methods are now compatible with the 2.4
38implemetation. In addition a set of renamed methods have been added
39that take wx.Point and/or wx.Size objects instead of individual
40parameters.
41
5841276a
RD
42Added wx.lib.mixins.listctrl.TextEditMixin, a mixin class that allows
43all columns of a wx.ListCtrl in report mode to be edited.
ba938c3d 44
165e6ca3
RD
45Deprecated the wx.iewin module.
46
47Deprecated the wx.Sizer.AddWindow, AddSizer, AddSpacer methods as well
48as their Insert* and Prepend* counterparts.
49
969d9b6f
RD
50Added a generic StaticBitmap class in wx.lib.statbmp for the same
51reasons that stattext was created, so it could be mouse sensitive on
52all platforms like normal windows. Also updated stattext.py and
53buttons.py to handle attribute (font & colour) defaults and
54inheritance the new way. If you have custom controls of your own you
55should review stattxt.py or one of the others to see how it is to be
56done.
165e6ca3 57
a3150741
RD
58wx.InitAllImageHandlers is now an empty function that does nothing but
59exist for backwards compatibility. The C++ version is now called
60automatically when wxPython is initialized. Since all the handlers
61are included in the wxWidgets shared library anyway, this imposes only
62a very small amount of overhead and removes several unneccessary
63problems.
64
d1e05453 65Replaced wx/lib/pubsub.py with a version that uses weak references to
89c876de
RD
66track the subscribers, plus other fixes/additions. Thanks go to
67Oliver Schoenborn and Robb Shecter.
d1e05453 68
89c876de
RD
69wxGTK now uses gtk_init_check so wxPython can raise an exception if
70there is no DISPLAY available or other initializaion problem.
71
72wx.GetKeyState now has an implementation for wxGTK and is able to
73detect the up/down or toggle state of modifier and toggle keys.
74
75The LC_NUMERIC locale is now reset back to "C" (compatibility) when
76running on wxGTK to work around the fact that GTK requires the locale
77to be set to the system settings but Python depends on LC_NUMERIC
78remaining compatible with "C".
a3150741 79
28eab81f
RD
80Switched gizmos.TreeListCtrl to the newer version of the code from the
81wxCode project.
82
f847103a
RD
83OGL is dead! LONG LIVE OGL! (Oops, sorry. A bit of my dramatic side
84leaked out there...) The wx.ogl module has been deprecated in favor
85of the new Python port of the OGL library located at wx.lib.ogl
86