]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/demo/FontEnumerator.py
Removed some debug code
[wxWidgets.git] / utils / wxPython / demo / FontEnumerator.py
index eff193fc0ce57270fd12052ee49e24ecc3924395..79421a2a2f5f7506cf1c85b66ebd4b644316bfd7 100644 (file)
@@ -3,14 +3,14 @@ from wxPython.wx import *
 
 #----------------------------------------------------------------------
 
-class MyFontEnumerator(wxFontEnumerator):
-    def __init__(self, list):
-        wxFontEnumerator.__init__(self)
-        self.list = list
+## class MyFontEnumerator(wxFontEnumerator):
+##     def __init__(self, list):
+##         wxFontEnumerator.__init__(self)
+##         self.list = list
 
-    def OnFacename(self, face):
-        self.list.append(face)
-        return true
+##     def OnFacename(self, face):
+##         self.list.append(face)
+##         return true
 
 
 
@@ -18,9 +18,14 @@ class TestPanel(wxPanel):
     def __init__(self, parent, log):
         wxPanel.__init__(self, parent, -1)
 
-        list = []
-        e = MyFontEnumerator(list)
+##         list = []
+##         e = MyFontEnumerator(list)
+##         e.EnumerateFacenames()
+
+        e = wxFontEnumerator()
         e.EnumerateFacenames()
+        list = e.GetFacenames()
+
         list.sort()
 
         wxStaticText(self, -1, "Face names:", wxPoint(15, 50), wxSize(65, 18))