Author Topic: Converting our in House Scripts to PerlGTK  (Read 12700 times)

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Converting our in House Scripts to PerlGTK
« on: July 14, 2010, 10:03:27 AM »
Texstar has asked that we convert our in house apps to perlGTK, so that they can be added to the control center.
This post is to ask that those with perl scripting knowledge / ability join in on accomplishing this. If you can do this, it will be appreciated.

My knowledge of perl is almost non-existent. If I'm very very careful, I can edit a perl script, but I'm as likely to break it as not.

Offline slax

  • Sr. Member
  • ****
  • Posts: 391
    • PCLinuxOS Gnome Edition
Re: Converting our in House Scripts to PerlGTK
« Reply #1 on: July 14, 2010, 07:11:44 PM »
I can offer my help, but i'm also not proficient with perl.
I am good with several programing languages, so maybe i'll menage, but still there should be some experienced perl coder to guide this project.

regards



Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Converting our in House Scripts to PerlGTK
« Reply #2 on: July 14, 2010, 07:24:13 PM »
I can offer my help, but i'm also not proficient with perl.
I am good with several programing languages, so maybe i'll menage, but still there should be some experienced perl coder to guide this project.

regards

Thank you ver much, slax. I'm glad to have you on this project. :)

It would be great to have an experienced perl programmer here. I think I will post in the Sandbox. Maybe there is someone who can code perl and hasn't seen this thread yet.

Offline gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3786
Re: Converting our in House Scripts to PerlGTK
« Reply #3 on: July 15, 2010, 01:34:32 AM »
I threaded pearls once. Does that count?

Galen

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Converting our in House Scripts to PerlGTK
« Reply #4 on: July 15, 2010, 05:22:11 AM »
Which scripts and where to find them?

Thanks, ongoto.

To start, EZSwitch. I'll upload more ASAP.
« Last Edit: July 15, 2010, 05:49:30 AM by Neal »

Offline Mark342

  • Sr. Member
  • ****
  • Posts: 334
Re: Converting our in House Scripts to PerlGTK
« Reply #5 on: July 29, 2010, 09:05:20 PM »
Edit: Found out its not the best way to do it.  ::)
Now I'm gonna focus on ugtk2/mygtk2 since these are the GUI libraries that are used
on top of GTK to create the GUI's in the PCC + its tools.
http://wiki.mandriva.com/en/Policies/DrakXGui
« Last Edit: July 30, 2010, 12:15:48 AM by Mark342 »
Anything worth doing is worth overdoing.

Registered Linux user #493318
Register yourself here: Linux Counter

Offline YouCanToo

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 5324
  • Location: Lebanon, OR., USA
    • Spreading the word.......
Re: Converting our in House Scripts to PerlGTK
« Reply #6 on: July 29, 2010, 10:59:26 PM »
I threaded pearls once. Does that count?

Galen

Does a pearl necklace count   :o




Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12483
Re: Converting our in House Scripts to PerlGTK
« Reply #7 on: July 29, 2010, 11:22:34 PM »
I threaded pearls once. Does that count?

Galen

Does a pearl necklace count   :o

 :o :o :o

Thanks to everyone who donates. You keep the servers running.

Offline Nameless

  • Full Member
  • ***
  • Posts: 105
  • I'm in your computer, okay?
Re: Converting our in House Scripts to PerlGTK
« Reply #8 on: July 30, 2010, 12:24:16 AM »
Which scripts and where to find them?

I second that (and btw I'm a experienced perl hacker)
Klaatu Barata Nikto

**deus ex machina**

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Converting our in House Scripts to PerlGTK
« Reply #9 on: July 30, 2010, 04:21:09 AM »
Ongoto and I have been working on this.

Ongoto's latest script and the .desktop file --
http://nbrks.com/neal/scripts/perl/EZSwitch/ezSwitch_gtk.txt
http://nbrks.com/neal/scripts/perl/EZSwitch/EZSwitch_perlGTK.desktop

It works great but has not been integrated into PCC.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Converting our in House Scripts to PerlGTK
« Reply #10 on: July 30, 2010, 05:34:33 AM »
Yes. Definitely do not use your main system for testing. :o Use a test box, test partition or a virtual machine.

Offline slax

  • Sr. Member
  • ****
  • Posts: 391
    • PCLinuxOS Gnome Edition
Re: Converting our in House Scripts to PerlGTK
« Reply #11 on: July 30, 2010, 05:51:16 AM »
Maybe this can felp fpr the other scripts:

http://ui-dialog.sourceforge.net/

Perl wrapper for zenity an other dialogs...



Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Converting our in House Scripts to PerlGTK
« Reply #12 on: July 30, 2010, 06:00:36 AM »
Yes. Definitely do not use your main system for testing. :o Use a test box, test partition or a virtual machine.

Too late :) I already tested it. Luckily, everything went well.
When we gonna see this little pe(a)rl integrated in PCC?

Get ready for it -----   "It will be ready, when it is ready." (Standard policy, you know.)

Offline Mark342

  • Sr. Member
  • ****
  • Posts: 334
Re: Converting our in House Scripts to PerlGTK
« Reply #13 on: August 02, 2010, 10:08:48 PM »
Any reason you didn't make a preview button that executes a sub similar to this?
Code: [Select]
sub preview_clicked
{
   (`plymouthd`);
   (`plymouth --show-splash; sleep 10; plymouth --quit`);
}

 I'm just naturally curious because I did it in a Perl GUI I made. :D

 Oh, and w00t:

click for full size

Though I'm sure texstar already knows how to do this, because I saw some PCLinuxOS specific edits in the two files I had to edit to do this.
So its just a personal accomplishment of mine. 8)

We just need to figure out how to embed the GUI because currently it has to open up a new window.
Guess I'll take a look at the source of some drak modules to see how it works. ::)
« Last Edit: August 02, 2010, 10:47:25 PM by Mark342 »
Anything worth doing is worth overdoing.

Registered Linux user #493318
Register yourself here: Linux Counter

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Converting our in House Scripts to PerlGTK
« Reply #14 on: August 03, 2010, 05:09:09 AM »
Mark342,
Excellent! Please post your updated script.