mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 01:30:07 +01:00
* 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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user