You should not use AddWindow, AddSizer, AddSpacer (and similar for
Insert, Prepend, and etc.) methods any longer. Just use Add and the
wrappers will figure out what to do. **[Changed in 2.5.2.x]**
-AddWindow, AddSize, AddSpacer and etc. will now issue a
+AddWindow, AddSizer, AddSpacer and etc. will now issue a
DeprecationWarning.
**[Changed in 2.5.2.x]** The Sizers have had some fundamental internal
version.
There are only a few known compatibility issues at this time. First
-is the location of OGL. The deprecated version is located in the
-wx.ogl module, and the new version is in the wx.lib.ogl package. So
-this just means that to start using the new version you need to adjust
-your imports. So if your code currently has something like this::
+is that the ogl.DrawnShape has not been reimplemented yet. Next is the
+location of OGL. The deprecated version is located in the wx.ogl
+module, and the new version is in the wx.lib.ogl package. So this
+just means that to start using the new version you need to adjust your
+imports. So if your code currently has something like this::
import wx
import wx.ogl as ogl
it is used something like this::
flags = wx.NavigationKeyEvent.IsForward
- if event.ShiftDown:
+ if event.ShiftDown():
flags = wx.NavigationKeyEvent.IsBackward
if event.ControlDown():
flags |= wx.NavigationKeyEvent.WinChange