]>
Commit | Line | Data |
---|---|---|
1 | Recent Changes for wxPython | |
2 | ===================================================================== | |
3 | ||
4 | 2.5.2.0 | |
5 | ------- | |
6 | ||
7 | wx.ADJUST_MINSIZE is now the default behaviour for window items in | |
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 | |
10 | be used for the minimum size. The wx.FIXED_MINSIZE flag was added | |
11 | that will cause the sizer to *not* call window methods to determine | |
12 | the new best size, instead the minsize that the window had when added | |
13 | to the sizer (or the size the window was created with) will always be | |
14 | used. When a window is added to a sizer it's initial size, if any, is | |
15 | set as the window's minimal size using SetSizeHints if there isn't | |
16 | already a minimal size. You can set the window's minimal size (via | |
17 | SetSizeHints) to manually control wha tthe sizer will use when | |
18 | calculating layout. | |
19 | ||
20 | Added new MaskedEditControl code from Will Sadkin. The modules are | |
21 | now locaed in their own sub-package, wx.lib.masked. Demos updated. | |
22 | ||
23 | The changes that implemented the incompatible wx.DC methods in 2.5.1.5 | |
24 | have been reverted. The wx.DC methods are now compatible with the 2.4 | |
25 | implemetation. In addition a set of renamed methods have been added | |
26 | that take wx.Point and/or wx.Size objects instead of individual | |
27 | parameters. | |
28 | ||
29 | Added wx.lib.mixins.listctrl.TextEditMixin, a mixin class that allows | |
30 | all columns of a wx.ListCtrl in report mode to be edited. | |
31 | ||
32 | Deprecated the wx.iewin module. | |
33 | ||
34 | Deprecated the wx.Sizer.AddWindow, AddSizer, AddSpacer methods as well | |
35 | as their Insert* and Prepend* counterparts. | |
36 | ||
37 | Added a generic StaticBitmap class in wx.lib.statbmp for the same | |
38 | reasons that stattext was created, so it could be mouse sensitive on | |
39 | all platforms like normal windows. Also updated stattext.py and | |
40 | buttons.py to handle attribute (font & colour) defaults and | |
41 | inheritance the new way. If you have custom controls of your own you | |
42 | should review stattxt.py or one of the others to see how it is to be | |
43 | done. | |
44 | ||
45 | wx.InitAllImageHandlers is now an empty function that does nothing but | |
46 | exist for backwards compatibility. The C++ version is now called | |
47 | automatically when wxPython is initialized. Since all the handlers | |
48 | are included in the wxWidgets shared library anyway, this imposes only | |
49 | a very small amount of overhead and removes several unneccessary | |
50 | problems. | |
51 | ||
52 | Replaced wx/lib/pubsub.py with a version that uses weak references to | |
53 | track the subscribers, plus other fixes/additions. Thanks go to | |
54 | Oliver Schoenborn and Robb Shecter. | |
55 | ||
56 | wxGTK now uses gtk_init_check so wxPython can raise an exception if | |
57 | there is no DISPLAY available or other initializaion problem. | |
58 | ||
59 | wx.GetKeyState now has an implementation for wxGTK and is able to | |
60 | detect the up/down or toggle state of modifier and toggle keys. | |
61 | ||
62 | The LC_NUMERIC locale is now reset back to "C" (compatibility) when | |
63 | running on wxGTK to work around the fact that GTK requires the locale | |
64 | to be set to the system settings but Python depends on LC_NUMERIC | |
65 | remaining compatible with "C". | |
66 | ||
67 | Switched gizmos.TreeListCtrl to the newer version of the code from the | |
68 | wxCode project. | |
69 | ||
70 | ||
71 | ||
72 | ||
73 | ||
74 | 2.5.1.5 | |
75 | ------- | |
76 | ||
77 | (See also the MigrationGuide_ file for details about some of the | |
78 | big changes that have happened in this release and how you should | |
79 | adapt your code.) | |
80 | ||
81 | .. _MigrationGuide: MigrationGuide.html | |
82 | ||
83 | ||
84 | The wxWindows project and library is now known as wxWidgets. Please | |
85 | see http://www.wxwindows.org/name.htm for more details. This won't | |
86 | really affect wxPython all that much, other than the fact that the | |
87 | wxwindows.org domain name will be changing to wxwidgets.org, so mail | |
88 | list, CVS, and etc. addresses will be changing. We're going to try | |
89 | and smooth the transition as much as possible, but I wanted you all to | |
90 | be aware of this change if you run into any issues. | |
91 | ||
92 | ||
93 | Many, many little fixes, changes and additions done as part of the move | |
94 | to wxWidgets 2.5 that I have forgotten about. | |
95 | ||
96 | Added wxMirrorDC. | |
97 | ||
98 | Added wxIconLocation | |
99 | ||
100 | Added Python wrappers and demos for the new wxVScrolledWindow, | |
101 | wxVListBox, and wxHtmlListBox classes. | |
102 | ||
103 | Added wrappers for wxBookCtrl and wxListbook. wxNotebook now derives | |
104 | from wxBookCtrl. | |
105 | ||
106 | Added Gordon Williams' PyPlot module to the library, available as the | |
107 | wx.lib.plot module. | |
108 | ||
109 | I made a small but important change in the code that aquires the | |
110 | Python Global Interpreter Lock to try and prevent deadlocks that can | |
111 | happen when there are nested attempts to aquire the GIL. | |
112 | ||
113 | The RPMs will now install menu items on Mandrake Linux in | |
114 | Applications/Development/Tools for PyCrust, XRCed, etc. The RPMs are | |
115 | also installing icons and ``*.desktop`` items in the generic KDE and | |
116 | GNOME locations, but I don't know yet if they are resulting in menu | |
117 | items on non-Mandrake systems. (It didn't automatically do it on my | |
118 | RH-9 build box but I didn't chase it very far...) If you have ideas | |
119 | for how to improve the .spec file to work better and/or on more | |
120 | distros please send me a patch. | |
121 | ||
122 | The RPMs are now built on a fairly generic RH-9 box, and I have tested | |
123 | installing them also on my main Mandrake 9.2 box. | |
124 | ||
125 | There are some big changes in the OS X disk image. The actual | |
126 | Installer package now *only* installs the wxMac dynlibs, wxPython | |
127 | extension modules and Python packages, and also the command-line tool | |
128 | scripts. The remaining items (demo, samples, and application bundles | |
129 | for the Demo, PyCrust and XRCed) are now top-level items in the disk | |
130 | image (.dmg file) that users can just drag and drop to wherever they | |
131 | want to put them. | |
132 | ||
133 | The wxWave class has been renamed to wxSound, and now has a slightly | |
134 | different API. | |
135 | ||
136 | Content-type: text/html ]>