demo tweaks

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-07-11 20:41:21 +00:00
parent 47b2f647b9
commit 63b6646e5d
10 changed files with 73 additions and 43 deletions

View File

@@ -44,7 +44,10 @@ class TestPanel(wxPanel):
self.txt.SetFont(font)
self.txt.SetSize(self.txt.GetBestSize())
## st = font.GetNativeFontInfo().ToString()
## ni2 = wxNativeFontInfo()
## ni2.FromString(st)
## font2 = wxFontFromNativeInfo(ni2)
#----------------------------------------------------------------------
@@ -61,11 +64,14 @@ def runTest(frame, nb, log):
overview = """\
wxFontEnumerator enumerates either all available fonts on the system or only the ones with given attributes - either only fixed-width (suited for use in programs such as terminal emulators and the like) or the fonts available in the given encoding.
"""
if __name__ == '__main__':
import sys,os
import run
run.main(['', os.path.basename(sys.argv[0])])