Esempio n. 1
0
 def __init__(self, *args, **kwargs):
     kwargs['columns'] = [
         Column(name='Artist',        initial_width=200),
         Column(name='Title',         initial_width=200),
         Column(name='Album',         initial_width=200),
         FixedWidthColumn(name='Duration',      initial_width=50),
     ]
     kwargs['search_columns'] = [
         1, 2,
     ]
     DuckListSearchableCtrl.__init__(self, *args, **kwargs)
     # The wx.App object must be created first for this to work!
     self.NORMAL_FONT = wx.Font(10, wx.FONTFAMILY_DEFAULT,
                                wx.FONTSTYLE_NORMAL, wx.NORMAL)
     self.BOLD_FONT   = wx.Font(10, wx.FONTFAMILY_DEFAULT,
                                wx.FONTSTYLE_NORMAL, wx.BOLD)
Esempio n. 2
0
 def __init__(self, *args, **kwargs):
     kwargs["columns"] = (Column(name="Artist"),)
     kwargs["search_columns"] = [0]
     DuckListSearchableCtrl.__init__(self, *args, **kwargs)