Update of /cvsroot/freevo/freevo/src/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21370

Modified Files:
        popupbox.py 
Log Message:
make it possible to set the button text for ConfirmBox

Index: popupbox.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/gui/popupbox.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** popupbox.py 9 Oct 2004 16:23:31 -0000       1.3
--- popupbox.py 18 Dec 2004 18:13:05 -0000      1.4
***************
*** 190,193 ****
--- 190,194 ----
      """
      def __init__(self, text, handler=None, handler_message=None,
+                  button0_text = _('Yes'), button1_text = _('No'),
                   default_choice=0):
          WaitBox.__init__(self, text)
***************
*** 197,203 ****
          w = int((self.get_content_size()[0] - spacing) / 2)
          x, y = self.get_content_pos()
!         self.b0 = Button(_('Yes'), (x,y), w, self.button_normal)
          x += w + spacing
!         self.b1 = Button(_('No'), (x, y), w, self.button_normal)
  
          y = self.add_row(self.b0.get_size()[1])
--- 198,204 ----
          w = int((self.get_content_size()[0] - spacing) / 2)
          x, y = self.get_content_pos()
!         self.b0 = Button(button0_text, (x,y), w, self.button_normal)
          x += w + spacing
!         self.b1 = Button(button1_text, (x, y), w, self.button_normal)
  
          y = self.add_row(self.b0.get_size()[1])



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to