Jason Tackaberry wrote: > On Tue, 2007-01-23 at 19:51 +0100, Dirk Meyer wrote: >> See freevo/ui/src/[audio|video]/player.py: >> | # create singleton object >> | player = kaa.utils.Singleton(Player) >> | >> | # create functions to use from the outside >> | play = player.play >> | stop = player.stop >> >> Now the player.py provides play and stop but the player itself will >> created when needed. > > I guess you are trading instantiating one class (Player) for another one > (Memberfunction).
Yes > (BTW it should be called MemberFunction.) Yes, fixed. > But I suppose at least you know the latter one is lightweight and > doesn't import anything Yes. The player creates a kaa.popcorn.Player (this is the Freevo player using the kaa.popcorn one). It also creates some gui objects needed and other stuff. So the later is much more lightweight. > neither of which could be said about kaa.popcorn.Player (assuming > this is the Player class you refer to). No, Freevo player using kaa.popcorn.Player. Dischi -- It's a little known fact that the Dark Ages were caused by unresolved Y1K issues.
pgpeve7H73w9l.pgp
Description: PGP signature
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel