Re: [pygtk] Gnome Panel Applets

2004-02-02 Thread Bryan Clark
gnome-blog is a gnome-python app that has a panel applet, you can take a
look at the code for some help:

http://www.gnome.org/~seth/gnome-blog/

~ Bryan

On Mon, 2004-02-02 at 09:33 +0100, Martin Grimme wrote:
> > I would like to make a gnome panel applet.  I
> > discovered a tutorial, but it's a bit outdated:
> > http://www.onlamp.com/pub/a/python/2000/07/25/gnome_applet.html
> > 
> > I created the applet and fixed it so it would compile:
> 
> That's totally outdated. Panel applets use bonobo in GNOME 2.x.
> 
> This may help you to get started:
> http://www.daa.com.au/pipermail/pygtk/2002-September/003393.html
> 
> 
> Martin Grimme
> 
> 
> ___
> pygtk mailing list   [EMAIL PROTECTED]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] Gnome Panel Applets

2004-02-02 Thread Martin Grimme
> I would like to make a gnome panel applet.  I
> discovered a tutorial, but it's a bit outdated:
> http://www.onlamp.com/pub/a/python/2000/07/25/gnome_applet.html
> 
> I created the applet and fixed it so it would compile:

That's totally outdated. Panel applets use bonobo in GNOME 2.x.

This may help you to get started:
http://www.daa.com.au/pipermail/pygtk/2002-September/003393.html


Martin Grimme


___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


[pygtk] Gnome Panel Applets

2004-02-01 Thread John Spiegel
I would like to make a gnome panel applet.  I
discovered a tutorial, but it's a bit outdated:
http://www.onlamp.com/pub/a/python/2000/07/25/gnome_applet.html

I created the applet and fixed it so it would compile:


-snip
# Import the GNOME applet routines:
import gnome.applet
 
# Import the Gtk+ routines:
import gtk
 
# The main() function:
def main():
# Create an instance of the AppletWidget class:
#myapplet = gnome.applet.Applet("Simple Applet")
myapplet = gnome.applet.Applet()
 
# Create a label to be shown inside the applet:
label = gtk.Label("Neato")
 
# Create a frame:
frame = gtk.Frame()
 
# Add the label to the frame:
frame.add(label)
 
# Show the label:
label.show()
 
# Show the frame:
frame.show()
 
# Add the frame to the applet:
myapplet.add(frame)
 
# Set the tooltip text for the applet:
#myapplet.set_tooltip("This is a very simple panel
applet.")
 
# Show the applet:
myapplet.show_all()
 
# Get into the Gtk main-loop:
gtk.mainloop()
 
# This is plain old Python, so you should understand
this:
if __name__ == '__main__': main()
snip


However, it displays no applet.  Any pointers?

Thanks,
John

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/