fallback pgu standard.
[minwii.git] / src / app / widgets / songfilebrowser.py
index b3acce8..973f9ab 100755 (executable)
@@ -17,14 +17,7 @@ class FileOpenDialog(FileDialog):
         FileDialog.__init__(self, 
                             title_txt="Ouvrir une chanson",
                             button_txt="Ouvrir",
         FileDialog.__init__(self, 
                             title_txt="Ouvrir une chanson",
                             button_txt="Ouvrir",
-                            #cls="dialog",
-                            #folderText = "Folder",
-                            #fileText = "File",
                             path=path,
                             path=path,
-                            #customFont = None,
-                            showCurDir = False
-                            #customWidth = 350,
-                            #customHeight = 150
                             )
     
     def _list_dir_(self):
                             )
     
     def _list_dir_(self):
@@ -47,22 +40,12 @@ class FileOpenDialog(FileDialog):
         for i in dirs:
             if i.startswith('.') and i != '..' :
                 continue
         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:
         for i in files:
-            #item = ListItem(image=None, text=i, value=i)
             if i.startswith('.') or (not i.endswith('.xml')) : 
                 continue
             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.set_vertical_scroll(0)
-        #self.list.repaintall()