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):
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()