Update of /cvsroot/freevo/freevo/WIP/RobShortt
In directory sc8-pr-cvs1:/tmp/cvs-serv12620
Modified Files:
audioitem.py-testui
Log Message:
Modifies popup examples to the new way of calling them and assed a
PasswordInputBox example.
Index: audioitem.py-testui
===================================================================
RCS file: /cvsroot/freevo/freevo/WIP/RobShortt/audioitem.py-testui,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** audioitem.py-testui 24 Mar 2003 00:40:37 -0000 1.6
--- audioitem.py-testui 30 Mar 2003 17:16:34 -0000 1.7
***************
*** 10,13 ****
--- 10,17 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.7 2003/03/30 17:16:34 rshortt
+ # Modifies popup examples to the new way of calling them and assed a
+ # PasswordInputBox example.
+ #
# Revision 1.6 2003/03/24 00:40:37 rshortt
# *** empty log message ***
***************
*** 119,122 ****
--- 123,127 ----
import gui.PopupBox as PopupBox
import gui.InputBox as InputBox
+ import gui.PasswordInputBox as PasswordInputBox
import gui.AlertBox as AlertBox
import gui.ConfirmBox as ConfirmBox
***************
*** 372,393 ****
"""
! # pb = PopupBox('TEST POPUP: 5 seconds',
icon='skins/icons/misc/cdrom_mount.png')
! # pb = AlertBox('You have raised an alert.')
! # pb = ConfirmBox('Do you wish to do something?', self.test_func)
! # pb = InputBox('TV Program Search', self.test_func)
!
! # pb = scrolldemo('Use up/down/left/right to scroll')
! pb = listboxdemo('Use up/down to scroll')
! # pb = optiondemo('Use enter on the box, then up/down to scroll')
!
! print 'FOCUSED_APP = %s' % osd.focused_app
! # before this line osd.focused_app is the menuwidget, we are
! # using it's superclass's (GUIObject) set_parent function
! # pb.set_parent(osd.focused_app)
! osd.focused_app.add_child(pb)
- # I am thinking of a more seamless way of changing focussed_app
- osd.focused_app = pb
print 'FOCUSED_APP = %s' % osd.focused_app
--- 377,390 ----
"""
! # pb = PopupBox(osd.focused_app, 'TEST POPUP: 5 seconds',
icon='skins/icons/misc/cdrom_mount.png')
! # pb = AlertBox(osd.focused_app, 'You have raised an alert.')
! # pb = ConfirmBox(osd.focused_app, 'Do you wish to do something?',
self.test_func)
! # pb = InputBox(osd.focused_app, 'TV Program Search', self.test_func)
! pb = PasswordInputBox(osd.focused_app, 'Enter the password:', self.test_func)
! # pb = scrolldemo(osd.focused_app, 'Use up/down/left/right to scroll')
! # pb = listboxdemo(osd.focused_app, 'Use up/down to scroll')
! # pb = optiondemo(osd.focused_app, 'Use enter on the box, then up/down to
scroll')
print 'FOCUSED_APP = %s' % osd.focused_app
***************
*** 397,410 ****
def test_func(self, word=None):
if word:
! pb = AlertBox('Your input was: '+word)
else:
! pb = AlertBox('You did it!')
print 'FOCUSED_APP = %s' % osd.focused_app
- pb.set_parent(osd.focused_app)
- osd.focused_app = pb
- print 'FOCUSED_APP = %s' % osd.focused_app
pb.show()
- osd.update()
--- 394,403 ----
def test_func(self, word=None):
if word:
! pb = AlertBox(osd.focused_app, 'Your input was: "%s"' % word)
else:
! pb = AlertBox(osd.focused_app, 'You did it!')
print 'FOCUSED_APP = %s' % osd.focused_app
pb.show()
-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog