Page 1 of 1

Script updates using Gnocl and gxmessage

Posted: Fri 31 Aug 2007, 12:32
by gray
I noticed that in Puppy 2.17.1 there are still some of the scripts using xmessage, so I converted them to use gxmessage. They take the gtk theme and look better :) :

Resize personal storage file - resizepfile.sh,
floppy-format.sh and chooselocale

Also updated some apps using Gnocl:
Xvesa wizard, set global font size and cd wizard.

Enjoy 8)

Thanks

Posted: Fri 31 Aug 2007, 20:54
by vovchik
Dear gray,

They look good and seem to work. Thanks. Any chance that you could use gnocl to improve the Wish CD writer and the smaller tk/tlc Kp process lister/killer? As regards the latter, it would be much smaller than gPS and would make use of GTK2.

WIth kind regards,
vovchik

Posted: Sat 01 Sep 2007, 06:09
by zigbert
Making a KP alternative with gtkdialog would be very simple. I can take a look at it.

Posted: Sat 01 Sep 2007, 06:44
by zigbert
vovchik

Sorry!
If you (or someone else) wants to enjoy making a Pprocess, please go ahead. My intension were not to take a good project out of your hands. This is a very good starter-project. If anyone wants some help, please give a notice.

The best wishes,
Sigmund

KP

Posted: Sat 01 Sep 2007, 09:51
by gray
Hmm, KP does look like another project to learn more Gnocl programming - I might just give it a go. I have looked at gtkdialog and for simple things it seems OK but anything remotely complex and I find it too much of a straightjacket (dont like it - can I have another one to take the taste away :D ). Gnocl on the other hand is even easier than Tk.

gnocl and KP

Posted: Sat 01 Sep 2007, 10:19
by vovchik
Gray,

Please have a go. I don't know tk and you obviously do know how to use gnocl and to program in tk. KP is not that big, and it would make a nice addition to the Puppy base of gtk2-based scripted apps. Good luck.

If you need testers, please let me know.

With kind regards,
vovchik

Posted: Sat 01 Sep 2007, 20:54
by Eyes-Only
Thanks for these Gray! I'm not in my Puppy 2.17 HDD install at the moment but my Debian-Sid instead. Still, I downloaded these and I'm looking forward to installing them and seeing how they look, etc.

Another one that would look really nice with an updated GUI interface? Burniso2cd. Small programme (that I know of anyway, I'm NOT a programmer anymore) but oh so very useful on Puppy! Especially now since it's been updated to do md5sums of CD burns a few Puppy versions back! Woohoo!

The type of "GUI interface" of which I'm speaking for this app wouldn't be one with any working parts or anything like that I guess (as it really doesn't have any to speak of), but more of an "updated look" that would fit in with the rest of our fine distro.

Have you thought too Gray of bringing these upgrades to BarryK's attention for inclusion into the newer Puppy versions? Might be worth a shot where it dresses them up and really doesn't add much to the over-all weight of the distro. One never knows, eh? ;)

Thanks again Gray and keep up the great work!

Amicalement,

Eyes-Only
"L'Peau-Rouge"

Posted: Sat 01 Sep 2007, 22:15
by plinej
Has anyone converted tkdvd to gnocl? Just curious how hard it would be. I've just started messing around with gnocl a bit but never having written a tcl script I'm at square one.

Posted: Sat 01 Sep 2007, 23:27
by Eyes-Only
Hi Gray,

I've since booted into my Puppy 2.17 HDD install and placed the said files into their respective places (after appending "original" the the ending of the names of the originals that is) and I'm otherwise very pleased with the outcome here! You've done an excellent job, IMHO anyway, of dressing these little apps up so that they blend in better with the over-all format of Puppy. I really think you should drop BarryK a line in regard to this, especially since I noticed that in a couple of apps it seemed to have actually dropped the size of the app. :) (I can't recall now which ones exactly did this though.)

I'm sold. Two thumbs up from me!

Amicalement,

Eyes-Only
"L'Peau-Rouge"

(P/S: Good luck Plinej on whatever you attempt to do! Having seen and used your apps as well I can't wait to see what you'll come out with! :D )

Posted: Sun 02 Sep 2007, 02:27
by BarryK
See my recent announcement on the News Blog:
http://www.puppylinux.com/news/
...some of them will be in 2.20alpha.

Posted: Sun 02 Sep 2007, 21:44
by Eyes-Only
This is really great news Barry, thank you! :D I loaded up Gray's little scripts last night (per above) and I thought they were really nice in the way they dressed up the former GUIs. He's done a marvelous job IMVHO.

And good luck on the 2.20 Barry! My thoughts are with you on this and my prayers for its success! I just have this "feeling" that 2.20 and 3.00 are going to be stellar releases that will make Puppy shine as never before! 8)

You folks are really special to me and have opened up an entire new world to me. Thank you all, and especially to you Barry.

Amicalement,

Eyes-Only
"L'Peau-Rouge"

Updated KP

Posted: Mon 03 Sep 2007, 10:58
by gray
Vovchik:

I have converted the kp script to use Gnocl (attached) :) .

If you hold down the right mouse button on a process a signal list pops up, so that an alternate kill can be selected for that process.

Give it a whirl 8)

kp script

Posted: Mon 03 Sep 2007, 20:38
by vovchik
gray:

It looks great and works. Thanks. If you get motivated, you might want to introduce a "start/time" category and allow for sorting of the processes by clicking on the headers (pid, uid, etc). That's the only thing that gps has that is still missing from kp. Incidentally, gps weighs in at 276k (stripped), whereas your kp is only 4.7k. I think Barry, like the rest of us, will be pleased.

Since I have the source of the original kp and now your version, I will go about studying how to use gnocl on the basis of your example.

regards,
vovchik

Updated KP

Posted: Tue 04 Sep 2007, 10:08
by gray
Sorting by pid etc is easy and so I have already implemented it in the updated file attached. Start time could be tricky as the ps command that KP uses does not supply that info.

ps is busybox link

Posted: Tue 04 Sep 2007, 11:33
by vovchik
Gray:

I see your point. I just realized that standard ps in Puppy is crippled, so to speak. I've attached a real version with a necessary lib. You'll see that you get the time result by default, but the columns that kp parses are set up for the busybox version and make a mess if running standard ps (not hard to change in kp, I imagine). Anyway, have a look at the real thing, which provides more information. In my slightly modded version of kp, I run the old ps:

Code: Select all

proc scan_proc {} {
  global plist
	set cmd "|ps-old"

With thanks and kind regards,
vovchik

full ps params

Posted: Tue 04 Sep 2007, 19:47
by vovchik
Gray:

The following line will tell the full ps to show time without disrupting your column order:

Code: Select all

 ps ax -o pid,user,size,stat,comm,stime
regards,
vovchik

KP+

Posted: Wed 05 Sep 2007, 09:44
by gray
vovchik:

Thanx 4 the full ps. I renamed it ps_full on my system and have updated KP to use it (attached).

ps-FULL

Posted: Wed 05 Sep 2007, 10:02
by vovchik
Gray:

Thanks again. Incidentally, I also named my complete "ps" to "ps-FULL", as leaving it there as ps caused pmount and mut to show erroneous information and to have problems mounting partitions via ntfs-3g. Why this is so I don't know, but tinkering with Barry's system files sometimes leads to unpredictable results. I had no such "problems" with other coreutils, however.

I'll now check out your newest version.

regards,
vovchik