+ def makeitem(name, *args):
+ func = getattr(sp, name)
+ sizer.Add(wx.StaticText(self, -1, "%s%s:" %(name, repr(args))),
+ 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL)
+ sizer.Add(wx.TextCtrl(self, -1, func(*args),
+ size=(275,-1), style=wx.TE_READONLY),
+ 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL)
+
+ btn = wx.Button(self, wx.ID_HELP)
+ sizer.Add(btn)
+ self.help[btn] = func.__doc__
+