Dear Wiki user, You have subscribed to a wiki page or wiki category on "Freevo Wiki" for change notification.
The following page has been changed by 217.172.65.50: http://freevo.sourceforge.net/cgi-bin/moin.cgi/TipsAndTricks ------------------------------------------------------------------------------ @@ -4,11 +4,12 @@ [[BR]][[BR]] == Get Mouse support == +(by O. Rubio , [EMAIL PROTECTED]) This trick adds a simple "mouse support" to the Freevo Interface. I'm using actually a 1.5rc2 version. I know this is not an elegant version, i'm working in this. I prefer next version of freevo add this funcionality. 1.- Modidy the "listing_area.py" file -<verbatim> +{{{ #nl. 330 aprox. .... if val.rectangle: @@ -19,11 +20,10 @@ choice.rectangle = (x0 + hskip + r.x + x_icon - BOX_UNDER_ICON * x_icon,y0 + vskip + r.y, r.width - icon_x + BOX_UNDER_ICON * icon_x,r.height) .... -</verbatim> +}}} 2.- First to generate the mouse event, edit the "osd.py" file. this is necessary for store the mouse position and detection. -<verbatim> - +{{{ while 1: event = pygame.event.poll() if event.type == 6: @@ -32,10 +32,10 @@ else: self.mouse = (0,()) -</verbatim> +}}} 3.- To get the event and make the action for the item, edit the "menu.py" file -<verbatim> +{{{ #nl. 337 aprox. for i in self.all_items: #the item has been "marked" for the mouse events @@ -67,7 +67,7 @@ action( arg=arg, menuw=self ) return -</verbatim> +}}} == Get Daily Cartoons on your Freevo == (By Tom Van den Bon) ------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X. >From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 _______________________________________________ Freevo-wikilog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-wikilog
