X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/95bfd958bda8955ac81277c78e5627c926154f39..d8746da256e827b700aaf173669bd5bbc97025c7:/wxPython/demo/VListBox.py

diff --git a/wxPython/demo/VListBox.py b/wxPython/demo/VListBox.py
index f54e185508..fe2112ea5f 100644
--- a/wxPython/demo/VListBox.py
+++ b/wxPython/demo/VListBox.py
@@ -14,7 +14,8 @@ class MyVListBox(wx.VListBox):
         if self.GetSelection() == n:
             c = wx.SystemSettings.GetColour(wx.SYS_COLOUR_HIGHLIGHTTEXT)
         else:
-            c = self.GetForegroundColour()#wx.SystemSettings.GetColour(wx.SYS_COLOUR_HIGHLIGHTTEXT) 
+            c = self.GetForegroundColour()
+        dc.SetFont(self.GetFont())
         dc.SetTextForeground(c)
         dc.DrawLabel(self._getItemText(n), rect,
                      wx.ALIGN_LEFT | wx.ALIGN_CENTER_VERTICAL)
@@ -23,11 +24,9 @@ class MyVListBox(wx.VListBox):
     # required to draw the n'th item.
     def OnMeasureItem(self, n):
         height = 0
-
         for line in self._getItemText(n).split('\n'):
             w, h = self.GetTextExtent(line)
             height += h
-
         return height + 5
 
 
@@ -127,5 +126,5 @@ of HTML for each item when requested.
 if __name__ == '__main__':
     import sys,os
     import run
-    run.main(['', os.path.basename(sys.argv[0])])
+    run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])