]> git.saurik.com Git - wxWidgets.git/commitdiff
Show sample License text on the AboutBox
authorRobin Dunn <robin@alldunn.com>
Wed, 25 Oct 2006 20:24:17 +0000 (20:24 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 25 Oct 2006 20:24:17 +0000 (20:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/AboutBox.py

index ee7582227407a6851be59a95196cbd8d2ed80234..fdec097b7c412b0407edca8a0f14db9b8f02457c 100644 (file)
@@ -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