X-Git-Url: https://scm.cri.ensmp.fr/git/minwii.git/blobdiff_plain/8107325baba9dacf2d7721192c981714a262dc09..e7854ed82aa375273bfbf772493739f875817061:/src/app/widgets/songfilebrowser.py?ds=inline diff --git a/src/app/widgets/songfilebrowser.py b/src/app/widgets/songfilebrowser.py index b3acce8..973f9ab 100755 --- a/src/app/widgets/songfilebrowser.py +++ b/src/app/widgets/songfilebrowser.py @@ -17,14 +17,7 @@ class FileOpenDialog(FileDialog): FileDialog.__init__(self, title_txt="Ouvrir une chanson", button_txt="Ouvrir", - #cls="dialog", - #folderText = "Folder", - #fileText = "File", path=path, - #customFont = None, - showCurDir = False - #customWidth = 350, - #customHeight = 150 ) def _list_dir_(self): @@ -47,22 +40,12 @@ class FileOpenDialog(FileDialog): for i in dirs: if i.startswith('.') and i != '..' : continue - #item = ListItem(image=self.dir_img, text=i, value=i) - if self.customFont == None : - self.list.add(i,image=self.dir_img,value=i) - else : - label = basic.Label(i,font = self.customFont) - self.list.add(label,image=self.dir_img,value=i) + self.list.add(i, image=self.dir_img, value=i) + for i in files: - #item = ListItem(image=None, text=i, value=i) if i.startswith('.') or (not i.endswith('.xml')) : continue - if self.customFont == None : - self.list.add(i,value=i) - else: - label = basic.Label(i,font = self.customFont) - self.list.add(label,value=i) - #self.list.resize() + self.list.add(i,value=i) + self.list.set_vertical_scroll(0) - #self.list.repaintall()