X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c6c593e88d75fe89320eafddeb547b3c058c34d8..33b44316a8c2924a07eb63b892eb48b3e73a7781:/wxPython/demo/FontEnumerator.py?ds=sidebyside diff --git a/wxPython/demo/FontEnumerator.py b/wxPython/demo/FontEnumerator.py index 5ada2dac5c..27a1466d94 100644 --- a/wxPython/demo/FontEnumerator.py +++ b/wxPython/demo/FontEnumerator.py @@ -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])]) +