mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
MSW fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71167 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -33,6 +33,7 @@ def run():
|
||||
# Tweak the parsed meta objects in the module object as needed for
|
||||
# customizing the generated code and docstrings.
|
||||
|
||||
|
||||
c = module.find('wxCalendarEvent')
|
||||
assert isinstance(c, etgtools.ClassDef)
|
||||
tools.fixEventClass(c)
|
||||
@@ -68,6 +69,8 @@ def run():
|
||||
CalendarCtrl.PySetDateRange = wx.deprecated(CalendarCtrl.SetDateRange)
|
||||
""")
|
||||
|
||||
cc.find('EnableYearChange').ignore()
|
||||
gcc.addHeaderCode("#include <wx/generic/calctrlg.h>")
|
||||
|
||||
module.addGlobalStr('wxCalendarNameStr', cc)
|
||||
|
||||
|
||||
@@ -33,7 +33,6 @@ def run():
|
||||
# customizing the generated code and docstrings.
|
||||
|
||||
module.addHeaderCode("#include <wx/datectrl.h>")
|
||||
module.addHeaderCode("#include <wx/generic/datectrl.h>")
|
||||
|
||||
dpc = module.find('wxDatePickerCtrl')
|
||||
assert isinstance(dpc, etgtools.ClassDef)
|
||||
@@ -51,6 +50,8 @@ def run():
|
||||
tools.fixWindowClass(c)
|
||||
c.find('GetRange.dt1').out = True
|
||||
c.find('GetRange.dt2').out = True
|
||||
|
||||
gdpc.addHeaderCode("#include <wx/generic/datectrl.h>")
|
||||
|
||||
#-----------------------------------------------------------------
|
||||
tools.doCommonTweaks(module)
|
||||
|
||||
@@ -31,6 +31,7 @@ def run():
|
||||
# Tweak the parsed meta objects in the module object as needed for
|
||||
# customizing the generated code and docstrings.
|
||||
|
||||
|
||||
di = module.find('wxDragImage')
|
||||
assert isinstance(di, etgtools.ClassDef)
|
||||
|
||||
@@ -46,7 +47,7 @@ def run():
|
||||
|
||||
# and for wxGenericDragImage
|
||||
gdi.addPrivateCopyCtor()
|
||||
|
||||
gdi.addHeaderCode("#include <wx/generic/dragimgg.h>")
|
||||
|
||||
|
||||
#-----------------------------------------------------------------
|
||||
|
||||
@@ -15,13 +15,21 @@ class aboutdlg_Tests(wtc.WidgetTestCase):
|
||||
info.SetDescription('This is a very goofy application')
|
||||
info.SetCopyright('(c) by Goofy Enterprises, Inc.')
|
||||
return info
|
||||
|
||||
def _closeDlg(self):
|
||||
for w in wx.GetTopLevelWindows():
|
||||
if isinstance(w, wx.Dialog):
|
||||
w.EndModal(wx.ID_OK)
|
||||
|
||||
def test_aboutdlgNative(self):
|
||||
info = self._makeInfo()
|
||||
wx.adv.AboutBox(info, self.frame)
|
||||
if not 'wxMSW' in wx.PlatformInfo():
|
||||
info = self._makeInfo()
|
||||
wx.CallLater(250, self._closeDlg)
|
||||
wx.adv.AboutBox(info, self.frame)
|
||||
|
||||
def test_aboutdlgGeneric(self):
|
||||
info = self._makeInfo()
|
||||
wx.CallLater(250, self._closeDlg)
|
||||
wx.adv.GenericAboutBox(info, self.frame)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user