Files
Phoenix/samples/simple/deprecated.py
Robin Dunn d949d1dad1 * 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
2011-09-11 00:33:10 +00:00

17 lines
370 B
Python

import wx
print wx.version()
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()