]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/docs/MigrationGuide.txt
reSWIGged
[wxWidgets.git] / wxPython / docs / MigrationGuide.txt
index 761ec50b11dd9ff41266ab1848d021c804ad944b..9f14102f5c42e68b7f34f10d0627f865e5a000a5 100644 (file)
@@ -452,11 +452,14 @@ wrappers will figure out what to do.
 
 **[Changed in 2.5.1.6]** wx.ADJUST_MINSIZE is now the default
 behaviour for window items in sizers.  This means that the item's
-GetAdjustedBestSize will be called when calculating layout and the
-return value from that will be used for the minimum size.  Added
-wx.FIXED_MINSIZE flag for when you would like the old behavior but you
-should only need it when your desired size is smaller than the item's
-GetBestSize().
+GetMinSize and/or GetBestSize will be called when calculating layout
+and the return value from that will be used for the minimum size.  The
+wx.FIXED_MINSIZE flag was added that will cause the sizer to *not*
+call window methods to determine the new best size, instead the
+minsize that the window had when added to the sizer (or the size the
+window was created with) will always be used.  When a window is added
+to a sizer it's initial size, if any, is set as the window's minimal
+size using SetSizeHints if there isn't already a minimal size.
 
 
 PlatformInfo
@@ -595,8 +598,8 @@ provided by the makers of the ActiveX control that you are using.
 
 
 
-Other Stuff
------------
+Obsolete Modules
+----------------
 
 Instead of over a dozen separate extension modules linked together
 into a single extension module, the "core" module is now just a few
@@ -605,11 +608,52 @@ later into the main namespace via Python code.
 
 Because of the above and also because of the way the new SWIG works,
 the "internal" module names have changed, but you shouldn't have been
-using them anyway so it shouldn't bother you. ;-)
+using them anyway so it shouldn't bother you. ;-) In case you were
+erroneously using them in 2.4, here are the internal extension modules
+no longer exist:
+
+    * clip_dnd
+    * cmndlgs
+    * controls
+    * controls2
+    * events
+    * filesys
+    * fonts
+    * frames
+    * gdi
+    * image
+    * mdi
+    * misc
+    * misc2
+    * printfw
+    * sizers
+    * stattool
+    * streams
+    * utils
+    * windows
+    * windows2
+    * windows3
+
+They have been replaced by the following, but please remember that
+these are just "implementation details" and you shoudl reall be using
+the objects in these modules via the wx or wxPython.wx packages:
+
+    * _core
+    * _gdi
+    * _windows
+    * _controls
+    * _misc
+
 
 The help module no longer exists and the classes therein are now part
 of the core module imported with wxPython.wx or the wx package.
 
+
+
+
+Other Stuff
+-----------
+
 wxPyDefaultPosition and wxPyDefaultSize are gone.  Use the
 wxDefaultPosition and wxDefaultSize objects instead.
 
@@ -617,6 +661,14 @@ Similarly, the wxSystemSettings backwards compatibiility aliases for
 GetSystemColour, GetSystemFont and GetSystemMetric have also gone into
 the bit-bucket.  Use GetColour, GetFont and GetMetric instead.
 
+Use the Python True/False constants instead of the true, TRUE, false,
+FALSE that used to be provided with wxPython.
+
+Use None instead of the ancient and should have been removed a long
+time ago wx.NULL alias.
+
+wx.TreeCtrl no longer needs to be passed the cookie variable as the
+2nd parameter.  It still returns it though, for use with GetNextChild.
 
 The wx.NO_FULL_REPAINT_ON_RESIZE style is now the default style for
 all windows.  The name still exists for compatibility, but it is set
@@ -665,3 +717,8 @@ functions in wxPython for parameters that are expecting an integer.
 If the object is not already an integer then it will be asked to
 convert itself to one.  A similar conversion fragment is in place for
 parameters that expect floating point values.
+
+**[Changed in 2.5.1.6]**  The MaskedEditCtrl modules have been moved
+to their own sub-package, wx.lib.masked.  See the docstrings and demo
+for changes in capabilities, usage, etc.
+