Update of /cvsroot/freevo/freevo/src
In directory sc8-pr-cvs1:/tmp/cvs-serv8480

Modified Files:
        directory.py 
Log Message:
use progressbar when scanning

Index: directory.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/directory.py,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** directory.py        30 Aug 2003 12:19:00 -0000      1.31
--- directory.py        1 Sep 2003 18:55:02 -0000       1.32
***************
*** 10,13 ****
--- 10,16 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.32  2003/09/01 18:55:02  dischi
+ # use progressbar when scanning
+ #
  # Revision 1.31  2003/08/30 12:19:00  dischi
  # new mmpython cache call to only scan the needed directory
***************
*** 84,88 ****
  import gui.PasswordInputBox as PasswordInputBox
  import gui.AlertBox as AlertBox
! from gui.PopupBox import PopupBox
  
  # XML support
--- 87,91 ----
  import gui.PasswordInputBox as PasswordInputBox
  import gui.AlertBox as AlertBox
! from gui.ProgressBox import ProgressBox
  
  # XML support
***************
*** 423,435 ****
              
          pop = None
          if (num_changes > 10) or (num_changes and self.media):
              if self.media and dir_on_disc == '':
!                 pop = PopupBox(text='Scanning disc, be patient...')
              else:
!                 pop = PopupBox(text='Scanning directory, be patient...')
              pop.show()
  
          if num_changes > 0:
!             mmpython.cache_dir(mmpython_dir)
              if self.media:
                  self.media.cached = TRUE
--- 426,440 ----
              
          pop = None
+         callback=None
          if (num_changes > 10) or (num_changes and self.media):
              if self.media and dir_on_disc == '':
!                 pop = ProgressBox(text='Scanning disc, be patient...', 
full=num_changes)
              else:
!                 pop = ProgressBox(text='Scanning directory, be patient...', 
full=num_changes)
              pop.show()
+             callback=pop.tick
  
          if num_changes > 0:
!             mmpython.cache_dir(mmpython_dir, callback=callback)
              if self.media:
                  self.media.cached = TRUE




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to