Update of /cvsroot/freevo/freevo/src/gui In directory sc8-pr-cvs1:/tmp/cvs-serv4957
Modified Files:
AlertBox.py ConfirmBox.py GUIObject.py InputBox.py PopupBox.py listboxdemo.py optiondemo.py scrolldemo.py Log Message:
Added 'parent' as a constructor argument for PopupBox and all of its
derivatives.
To create and show a Popupbox now all you need to do is:
pb = PopupBox(osd.focused_app, 'This is the popup text') pb.show()
Here I passed osd.focused_app as the parent. osd.focused_app at this instance is manuw, the MenuWidget. If you had a MenuWidget instance you could pass that instead if you like or if you _are_ the MenuWidget you could pass 'self'.
I prefer to use osd.focused_app when I can because then I know that I am stealing focus away from the app that has it.
-Rob
------------------------------------------------------- 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-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel
