[Goodies-dev] writing test plugin in python

s|s supreet.sethi at gmail.com
Fri May 11 09:42:37 CEST 2007


Hey,
I was testing python xfce4 plugin with appropriate desktop file. Following
is the code. The plugin does not show on the panel.

I am wondering why




import
pygtk
import
pyexo
import
gtk
from xfce4.panel import
Plugin


class
test(Plugin):
    def
__init__(self):

Plugin.__init__(self)
        eb = gtk.EventBox()

        label = gtk.Label("Hello
World")
        eb.add(label)

        eb.show()

        self.add(eb)

        self.add_action_widget(eb)





plugin =
test()
plugin.show()
gtk.main()

thanks in advance


-- 
Supreet Sethi
http://supreetsethi.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.xfce.org/pipermail/goodies-dev/attachments/20070511/1f055d8c/attachment.html>


More information about the Goodies-dev mailing list