PCountdown - countdown timer
Dear 01micko,
I made a few mods that shorten the script a bit (generated the item lists in loops). Please have a look. Also I replaced "file icon" with "file stock", since, in this way, gtkdialog respects the button icon size stipulated in the user's gtk theme.
With kind regards,
vovchik
I made a few mods that shorten the script a bit (generated the item lists in loops). Please have a look. Also I replaced "file icon" with "file stock", since, in this way, gtkdialog respects the button icon size stipulated in the user's gtk theme.
With kind regards,
vovchik
- Attachments
-
- countdown.tar.gz
- (1.36 KiB) Downloaded 775 times
Thanks
Works fine ... but the dog snarled the fisrt time she read the screen.01micko wrote:Version -0.1.2
Thanks!
Thom
Hi Jim1911 and tlchost.
Jim, remember when you reported the bug? I bet it was around 8 or 9 in the morning right? tlchost, same. The problem is the code solution I chose, which Patriot kindly pointed out to me. It wont handle 08 or 09 because bash (in this instance) reads the 0 as a switch to change to base 8. Consequently the code fails because we are working in base 10.
Now I know what the problem is I can fix it, but the fixed version will be slightly slower I fear (no prob for you Jim ) but I can test and refine on my old k6 400 w/ 128Mib ram.
vovchik, thanks for your interest, I will look at your code and try to understand it, all good learning experience for me
Cheers and thanks for reports.
Jim, remember when you reported the bug? I bet it was around 8 or 9 in the morning right? tlchost, same. The problem is the code solution I chose, which Patriot kindly pointed out to me. It wont handle 08 or 09 because bash (in this instance) reads the 0 as a switch to change to base 8. Consequently the code fails because we are working in base 10.
Now I know what the problem is I can fix it, but the fixed version will be slightly slower I fear (no prob for you Jim ) but I can test and refine on my old k6 400 w/ 128Mib ram.
vovchik, thanks for your interest, I will look at your code and try to understand it, all good learning experience for me
Cheers and thanks for reports.
Puppy Linux Blog - contact me for access
vovchick
Thankyou for your addition, I love it! It will be in the next version, provided it works nice on my old machine, I can't see a problem. That code should trim a little fat too . I like it.
Cheers
Mick
Thankyou for your addition, I love it! It will be in the next version, provided it works nice on my old machine, I can't see a problem. That code should trim a little fat too . I like it.
Cheers
Mick
Puppy Linux Blog - contact me for access
updated to version -0.1.5
See main post
_____________________________________
vovchik,
I tried your function code and it didn't work. The gui rendered fine but it somehow would not allow the functions script to run correctly. The code (my code) is very , how shall we say, raw. There are still refinements to be made. I did implement the 'icon' to 'stock' change, thanks.
Cheers
See main post
_____________________________________
vovchik,
I tried your function code and it didn't work. The gui rendered fine but it somehow would not allow the functions script to run correctly. The code (my code) is very , how shall we say, raw. There are still refinements to be made. I did implement the 'icon' to 'stock' change, thanks.
Cheers
Puppy Linux Blog - contact me for access
Dear01micko,
I am scratching my head. I don't see how my functions can affect the stuff in the functions file, particularly since the gui renders in your case, too. All my functions do, as you know, is to generate the item lists - rather than having them hardcoded. It all works on my puppies (3.01 and 4.10).
With kind regards,
vovchik
I am scratching my head. I don't see how my functions can affect the stuff in the functions file, particularly since the gui renders in your case, too. All my functions do, as you know, is to generate the item lists - rather than having them hardcoded. It all works on my puppies (3.01 and 4.10).
With kind regards,
vovchik
vovchik
I have it working now with my updated code . I was trying to implement too many changes at once... a bad idea . So I went back a step and implemented changes slowly.
Your function code will be in the next release. Just testing on old machine.
Cheers
Mick
_______________________________________
It all works on old box
Now up to v-0.1.6
See main post
I have it working now with my updated code . I was trying to implement too many changes at once... a bad idea . So I went back a step and implemented changes slowly.
Your function code will be in the next release. Just testing on old machine.
Cheers
Mick
_______________________________________
It all works on old box
Now up to v-0.1.6
See main post
Puppy Linux Blog - contact me for access
Dear mick,
I ahve another little suggestion. Try using the following in the "Duration of Splash" hbox:
The homogeneous="true" bit in the hbox obviates the need for manually spacing the strings used in the labels. They will centre just fine without whitespace padding.
With kind regards,
vovchik
I ahve another little suggestion. Try using the following in the "Duration of Splash" hbox:
Code: Select all
<frame Duration of Splash>
<hbox homogeneous=\"true\">
<radiobutton>
<variable>DUR1</variable>
<label>Short</label>
<default>$DUR1</default>
</radiobutton>
<radiobutton>
<variable>DUR2</variable>
<label>Sound time</label>
<default>$DUR2</default>
</radiobutton>
<radiobutton>
<variable>DUR3</variable>
<label>Infinity</label>
<default>$DUR3</default>
</radiobutton>
</hbox>
</frame>
With kind regards,
vovchik
Dear mick,
Here is an icon I found (PD) that might be suitable for PCountdown.
With kind regards,
vovchik
Here is an icon I found (PD) that might be suitable for PCountdown.
With kind regards,
vovchik
- Attachments
-
- clock-timer-alarm.png
- (4.12 KiB) Downloaded 1393 times
Hello vovchik
Thanks for all your help, I fixed the <vbox> tag with your suggestion, and also reduced the icon to 16x16 and added to the package and also added the full size icon to the main post with instructions on how to use it on the desktop.
Cheers
Mick
___________________________________
V -1.7 is out..
See main post
Thanks for all your help, I fixed the <vbox> tag with your suggestion, and also reduced the icon to 16x16 and added to the package and also added the full size icon to the main post with instructions on how to use it on the desktop.
Cheers
Mick
___________________________________
V -1.7 is out..
See main post
Puppy Linux Blog - contact me for access
-
- Posts: 1198
- Joined: Tue 05 Aug 2008, 18:12
- Location: UK
Dear Mick,
Have a look at this timer prog. It uses Xdialog for the GUI. I changed it a bit in order to accommodate command line arguments. You can put it wherever you want and type, for example,
to run xterm with parameters in 5 seconds' time. The countdown bit is pretty nice, since it uses a GTK widget, but your prog offers a better GUI and more control. In any case, here is some more food for thought. If you simply click on pcntdwn in Rox without arguments, you will launch the GUI. I think we might need to do some error checks on the command line input and clean up the logic relating to that aspect. My mods were just a quick hack to get it running. Launching in a terminal with -help or --help displays usage.
With kind regards,
vovchik
Have a look at this timer prog. It uses Xdialog for the GUI. I changed it a bit in order to accommodate command line arguments. You can put it wherever you want and type, for example,
Code: Select all
./pcntdwn "0/0/5" "xterm -e ls"
With kind regards,
vovchik
- Attachments
-
- pcntdwn.tar.gz
- (1.81 KiB) Downloaded 662 times
Hello vovchik
That is a cool little countdown timer, up to 100 hrs too I see. It would be great for offpeak downloading... let's say Easy. You could set it before you go to bed. I could add a box to run a command to mine too, but I think Pschedule takes care of it anyway.
BTW, I just did 2 tests on my old box (over 2 days). If you set for 24 hours it works but restarts the timer immediately, if you set for 23h 59m 59s it works as expected.. I will remove 24 from the dropdown in the next release.
Dave, you are now even more spoilt for choice!
Cheers
Mick
That is a cool little countdown timer, up to 100 hrs too I see. It would be great for offpeak downloading... let's say
Code: Select all
./pcntdwn "5/0/0" wget -[options] http://www.someaddress/somefile
BTW, I just did 2 tests on my old box (over 2 days). If you set for 24 hours it works but restarts the timer immediately, if you set for 23h 59m 59s it works as expected.. I will remove 24 from the dropdown in the next release.
Dave, you are now even more spoilt for choice!
Cheers
Mick
Puppy Linux Blog - contact me for access
-
- Posts: 1198
- Joined: Tue 05 Aug 2008, 18:12
- Location: UK
01micko wrote:
So in the space of a week I now have countdown timers courtesy of jemimah, Lobster, vovchik and yourself...plus a few count-up timer suggestions.
Many thanks to all.
Dave
Thinks: now if I could get the attention of a GUI expert to fix the double menus problem in Gxine in 214X http://murga-linux.com/puppy/viewtopic.php?t=47779 my life would be complete....or close to it.
Yes the latest one from vovchik is small and elegant.Dave, you are now even more spoilt for choice!
So in the space of a week I now have countdown timers courtesy of jemimah, Lobster, vovchik and yourself...plus a few count-up timer suggestions.
Many thanks to all.
Dave
Thinks: now if I could get the attention of a GUI expert to fix the double menus problem in Gxine in 214X http://murga-linux.com/puppy/viewtopic.php?t=47779 my life would be complete....or close to it.
minor bugfix update... but I'll let it go as V -0.2.0...
See main post
See main post
Puppy Linux Blog - contact me for access
Now at version 1.0
Has fancy yaf-splash fonts now, CatDude is responsible for making me do this, blame him..
Also, the gui is killed now while counting down
see main post
Has fancy yaf-splash fonts now, CatDude is responsible for making me do this, blame him..
Also, the gui is killed now while counting down
see main post
Puppy Linux Blog - contact me for access
- technosaurus
- Posts: 4853
- Joined: Mon 19 May 2008, 01:24
- Location: Blue Springs, MO
- Contact:
- ttuuxxx
- Posts: 11171
- Joined: Sat 05 May 2007, 10:00
- Location: Ontario Canada,Sydney Australia
- Contact:
here's a icon I made for it. feel free to use it or not, lol the gnome one above that vovchik posted, is cool. Just figured I would make one you could call your own, or not, lol
ttuuxxx
ttuuxxx
- Attachments
-
- timer128.png
- (13.53 KiB) Downloaded 1198 times
-
- timer48.png
- (3.3 KiB) Downloaded 1161 times
-
- timer16.png
- (816 Bytes) Downloaded 1182 times
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)