mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-08 04:50:07 +01:00
Merge pull request #376 from RobinD42/fix-issue374
Add wrappers for wxPrintData::[GS]etPaperSize
This commit is contained in:
@@ -59,6 +59,9 @@ def run():
|
||||
assert isinstance(c, etgtools.ClassDef)
|
||||
tools.removeVirtuals(c)
|
||||
|
||||
c.addCppMethod('wxSize*', 'GetPaperSize', '()', 'return new wxSize(self->GetPaperSize());')
|
||||
c.addCppMethod('void', 'SetPaperSize', '(const wxSize* sz)', 'self->SetPaperSize(*sz);')
|
||||
|
||||
c.addCppMethod('int', '__nonzero__', '()', """\
|
||||
return self->IsOk();
|
||||
""")
|
||||
|
||||
@@ -46,6 +46,14 @@ class cmndata_tests(wtc.WidgetTestCase):
|
||||
pd.__nonzero__()
|
||||
pdd.__nonzero__()
|
||||
|
||||
|
||||
def test_PD_PaperSize(self):
|
||||
pd = wx.PrintData()
|
||||
pd.GetPaperSize()
|
||||
pd.SetPaperSize( wx.Size(8.5*300, 11*300) )
|
||||
pd.PaperSize
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user