[Goodies-dev] writing test plugin in python

Jannis Pohlmann jannis at xfce.org
Fri May 11 17:01:54 CEST 2007


Am Fri, 11 May 2007 13:12:37 +0530
schrieb s|s <supreet.sethi at gmail.com>:

> 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

Try to add label.show().
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/goodies-dev/attachments/20070511/60d89374/attachment.pgp>


More information about the Goodies-dev mailing list