in freevo 1.5 you will only need to create a command fxd file. see an example in 
freevo/WIP/Ruelle/Mozilla.fxd

--
Michael Ruelle
[EMAIL PROTECTED]


> Hello,
> 
> This is two simple plugins which will spawn k3b and konqueror respectively.
> The script is basically the same as one I found for firebird, however Ive 
> found it can be modified to spawn pretty much every program you would need.
> 
> Just make sure konqueror and k3b start in fullscreen-mode. This can either be
> set from the application or by manually editing the ~/.kde/share/config/*rc 
> files for these apps.
> 
> I have these in /usr/lib/python2.3/site-packages/freevo/plugins and they are 
> working *amazingly* well to my needs. Couldnt be happier with this 
> integration. You will of course need kdebase and kdelibs (and k3b) for them 
> to work.
> 
> I have yet to make an icon appear on the main menu for these items. Perhaps 
> some devel has the appropriate icons already lying around :-)
> 
> Cheers
> 
> 
> konqueror.py
> -------------
> 
> #if 0 /*
> #endif
> 
> #python modules
> import os, popen2, fcntl, select, time
> import pygame
> import osd
> 
> #freevo modules
> import config, menu, rc, plugin, skin, util
> 
> import event as em
> from item import Item
> 
> from gui.AlertBox import AlertBox
> from gui.RegionScroller import RegionScroller
> from gui.ListBox import ListBox
> from gui.AlertBox import PopupBox
> from gui.GUIObject import Align
> 
> #get the sinfletons so we can add our menu and get skin info
> skin = skin.get_singleton()
> #menuwidget = menu.get_singleton()
> 
> osd = osd.get_singleton()
> class CommandMainMenuItem(Item):
>     def actions(self):
>         """
>         return a list of actions for this item
>         """
>         items = [ ( self.RunCmd , 'Internet' ) ]
>         return items
>     def RunCmd(self, arg=None, menuw=None):
>         popup_string=_("Starting Web Browser...")
>         pop = PopupBox(text=popup_string)
>         pop.show()
>         osd.stopdisplay()
>         os.system('konqueror')
>         osd.restartdisplay()
>         osd.update()
>         pop.destroy()
>         osd.update()
> 
> class PluginInterface(plugin.MainMenuPlugin):
>     """
>     A quick plugin to spawn a web browser from the main menu.
>     Setup your konqueror client to start in fullscreenmode!
> 
>     To activate, put the following in local_conf.py
> 
>     plugin.active('konqueror', level=45)
>     """
>     def items(self, parent):
>         menu_items = skin.settings.mainmenu.items
> 
>         item = CommandMainMenuItem()
>         item.name = _('Internet')
>         item.parent = parent
>         return [ item ]
> 
> 
> -------------
> 
> 
> k3b.py
> -----------------
> #if 0 /*
> #endif
> 
> #python modules
> import os, popen2, fcntl, select, time
> import pygame
> import osd
> 
> #freevo modules
> import config, menu, rc, plugin, skin, util
> 
> import event as em
> from item import Item
> 
> from gui.AlertBox import AlertBox
> from gui.RegionScroller import RegionScroller
> from gui.ListBox import ListBox
> from gui.AlertBox import PopupBox
> from gui.GUIObject import Align
> 
> #get the sinfletons so we can add our menu and get skin info
> skin = skin.get_singleton()
> #menuwidget = menu.get_singleton()
> 
> osd = osd.get_singleton()
> class CommandMainMenuItem(Item):
>     def actions(self):
>         """
>         return a list of actions for this item
>         """
>         items = [ ( self.RunCmd , 'DVD/CD Burning' ) ]
>         return items
>     def RunCmd(self, arg=None, menuw=None):
>         popup_string=_("Starting K3b...")
>         pop = PopupBox(text=popup_string)
>         pop.show()
>         osd.stopdisplay()
>         os.system('k3b')
>         osd.restartdisplay()
>         osd.update()
>         pop.destroy()
>         osd.update()
> 
> class PluginInterface(plugin.MainMenuPlugin):
>     """
>     A quick plugin to spawn k3b burning software from the main menu.
> 
>     To activate, put the following in local_conf.py
> 
>     plugin.active('k3b', level=45)
>     """
>     def items(self, parent):
>         menu_items = skin.settings.mainmenu.items
> 
>         item = CommandMainMenuItem()
>         item.name = _('DVD/CD Burning')
>         item.parent = parent
>         return [ item ]
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by Black Hat Briefings & Training.
> Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
> digital self defense, top technical experts, no vendor pitches, 
> unmatched networking opportunities. Visit www.blackhat.com
> _______________________________________________
> Freevo-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/freevo-devel


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to