From: Robin Dunn Date: Wed, 25 Oct 2006 20:24:17 +0000 (+0000) Subject: Show sample License text on the AboutBox X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/58cb01d1eb3d75298cc424ad6866fb5bec136fb6 Show sample License text on the AboutBox git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/demo/AboutBox.py b/wxPython/demo/AboutBox.py index ee75822274..fdec097b7c 100644 --- a/wxPython/demo/AboutBox.py +++ b/wxPython/demo/AboutBox.py @@ -34,6 +34,8 @@ class TestPanel(wx.Panel): "Jane Coder", "Vippy the Mascot" ] + info.License = wordwrap(licenseText, 500, wx.ClientDC(self)) + # Then we call wx.AboutBox giving it that info object wx.AboutBox(info) @@ -61,6 +63,8 @@ generic wxWidgets version of the dialog. """ +licenseText = "blah " * 250 + "\n\n" +"yadda " * 100 + if __name__ == '__main__': import sys,os