* Update version number

* Since they are almost always needed for window classes, move the calls to
  removeVirtuals and addWindowVirtuals into the fixWindowClass and
  fixTopLevelWindowClass functions.

* Add wxWithImages to the interface headers and create wrappers for it and use
  it as a base of wxBoockCtrlBase.

* Add a new wx.deprecated() function that can handle properties and classes in
  addition to callables. It issues a custom warning, wxPyDeprecationWarning
  since the stock DeprecationWarning is filtered out by default in Python 2.7.

* Deprecate PyWindow and similar aliases

* Deprecate wx.Window.SetDimensions


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2011-09-11 00:33:10 +00:00
parent 60d9ea15f6
commit d949d1dad1
35 changed files with 376 additions and 143 deletions

View File

@@ -1,7 +1,16 @@
import wx
print wx.version()
app = wx.PySimpleApp() # Should see a deprecation warning here
class TestPanel(wx.PyPanel):
def __init__(self, *args, **kw):
wx.PyPanel.__init__(self, *args, **kw) # You should see a deprecation warning here
self.BackgroundColour = "#66CDAA"
app = wx.PySimpleApp() # You should see a deprecation warning here
frm = wx.Frame(None)
pnl = TestPanel(frm)
frm.Show()
app.MainLoop()