From 690436fd3c73b2651b0ab588b93b76a4f6bb3e43 2007-03-16 17:17:53 From: walter.doerwald Date: 2007-03-16 17:17:53 Subject: [PATCH] Nicer code. --- diff --git a/IPython/Extensions/igrid.py b/IPython/Extensions/igrid.py index a21b30b..6178284 100644 --- a/IPython/Extensions/igrid.py +++ b/IPython/Extensions/igrid.py @@ -665,7 +665,7 @@ class IGridFrame(wx.Frame): maxtitlelen = 30 def __init__(self, parent, input): - title = " ".join([str(x[1]) for x in ipipe.xformat(input, "header", 20)[2]]) + title = " ".join([str(text) for (style, text) in ipipe.xformat(input, "header", 20)[2]]) wx.Frame.__init__(self, None, title=title, size=(640, 480)) self.menubar = wx.MenuBar() self.menucounter = 100