예제 #1
0
파일: playlist.py 프로젝트: emou/duck
 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)
예제 #2
0
파일: artistlist.py 프로젝트: emou/duck
 def __init__(self, *args, **kwargs):
     kwargs["columns"] = (Column(name="Artist"),)
     kwargs["search_columns"] = [0]
     DuckListSearchableCtrl.__init__(self, *args, **kwargs)