LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-16-2006, 03:24 PM   #1
The Albatross
LQ Newbie
 
Registered: Feb 2006
Posts: 5

Rep: Reputation: 0
Developing a GNOME applet using perl


Hi there,

I'd like to develop a GNOME applet using perl. I just don't know whether it's possible or not. I need some kind of a tutorial, a how-to or simply a sample code to figure out the main things.

The only problem is that googling gives me old articles about it, some of them are even about GNOME 1.x, and I'm sure a lot has been changed since then.

Could anyone provide me a place to begin?

Thanks in advance.
 
Old 04-16-2006, 04:39 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
I guess your journey should begin reading about the Perl gtk+ bindings:
http://gtk2-perl.sourceforge.net/
 
Old 04-17-2006, 10:34 AM   #3
The Albatross
LQ Newbie
 
Registered: Feb 2006
Posts: 5

Original Poster
Rep: Reputation: 0
I found an article which explains how to do it in Python. I can't post a link to it since I don't have yet 3 posts.

Anyway, this article was written in 2004, and I wanted to know wheter anything has been changed since then.

Thanks.
 
Old 04-18-2006, 04:37 AM   #4
The Albatross
LQ Newbie
 
Registered: Feb 2006
Posts: 5

Original Poster
Rep: Reputation: 0
OK, it seems to work, but only under some circumstances.

I have created a .py file and a .server file and inserted them in the right places. Then, when I try to add the applet to the panel by opening the Add to Panel dialog, I get an error message saying "The panel encountered a problem while loading "OAFIID:GNOME_SampleApplet". Do you want to delete the applet from your configuration?"

The only way it works is when I execute the .py file before adding the applet, i.e. typing "python sample.py" in the terminal and then adding the applet to the panel.

What can I do in order to solve this problem?

Thanks.
 
Old 04-18-2006, 07:48 AM   #5
The Albatross
LQ Newbie
 
Registered: Feb 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Problem solved: I just had to change the .py file permissions.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gnome Applet problems SuperNate Linux - Software 1 10-21-2005 12:43 PM
gnome applet netspeed mebae Slackware 0 09-17-2005 04:54 AM
weather applet for gnome walden Linux - Software 1 07-26-2005 08:22 PM
Gnome applet and sound redsea Linux - Software 0 04-13-2004 11:05 AM
gweather applet - GNOME 2.0, RH 8.0 boonders Linux - Software 1 04-01-2003 02:40 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration