Author |
Message |
technosaurus

Joined: 18 May 2008 Posts: 4878 Location: Blue Springs, MO
|
Posted: Fri 06 Mar 2009, 23:22 Post subject:
PCP - Puppy Control Panel(s) |
|
Update: used gtkdialog3 and xdialog to produce the attached script and screenshot
Description |
puppy control panel screenshot |
Filesize |
55.92 KB |
Viewed |
2373 Time(s) |

|
Description |
the script
|

Download |
Filename |
pcp.bz2 |
Filesize |
2.17 KB |
Downloaded |
863 Time(s) |
_________________ Check out my github repositories. I may eventually get around to updating my blogspot.
Last edited by technosaurus on Sun 08 Mar 2009, 19:55; edited 1 time in total
|
Back to top
|
|
 |
raffy
Joined: 25 May 2005 Posts: 4843 Location: Manila
|
Posted: Fri 06 Mar 2009, 23:34 Post subject:
dvw86 |
|
Just FYI, dvw86 has done some work on it,but the last language he used was murgaLua:
http://murga-linux.com/puppy/viewtopic.php?t=15931
http://www.murga-linux.com/puppy/viewtopic.php?t=26600
_________________ Puppy user since Oct 2004. Want FreeOffice? Get the sfs (English only).
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 4878 Location: Blue Springs, MO
|
Posted: Fri 06 Mar 2009, 23:55 Post subject:
|
|
looks promising Raffy, I was thinking more of a simpler, easily editable version that would be ~10kb of text (Xdialog script) and require no additional libraries/programs (beside the fact that I can actually use it). Murga Lua is not default in many versions of Puppy and if I recall it was around 500kb.
_________________ Check out my github repositories. I may eventually get around to updating my blogspot.
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15588 Location: Paradox Realm
|
Posted: Sat 07 Mar 2009, 00:34 Post subject:
|
|
also consider using gtkdialog3
_________________ Puppy Raspup 8.2 Final
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html 
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 4878 Location: Blue Springs, MO
|
Posted: Sat 07 Mar 2009, 10:25 Post subject:
|
|
Lobster - any gtkdialog3 examples?
_________________ Check out my github repositories. I may eventually get around to updating my blogspot.
|
Back to top
|
|
 |
aragon
Joined: 15 Oct 2007 Posts: 1698 Location: Germany
|
Posted: Sat 07 Mar 2009, 15:41 Post subject:
|
|
if you got devx loaded, they are at /usr/share/doc/gtkdialog3
but xdialog might be an interesting way because i've seen an example where xdialog and dialog are combined in one script. if x is running it will run as xdialog if not as dialog. so a wizard would be accessible in x and in cli...
but i had to google for it, i haven't make a bookmark
aragon
_________________ PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15588 Location: Paradox Realm
|
Posted: Sat 07 Mar 2009, 16:03 Post subject:
|
|
technosaurus wrote: | Lobster - any gtkdialog3 examples? |
MU may have more appropriate examples
but this is the code part of YAP which uses pull down menus . . .
Code: | #! /bin/bash
# YinYana Alter Program GPL v3 License
# YAP v 1.8 March 21 008
# created by Lobster for Tmxxine Vision and Sentient Beings Everywhere
# With thanks to Barry Kauler, Team Puppy, Mark Ulrich, mcewanw, Warren
#########
cd /mnt/home/pets/
export Vision='
<window title="YAP" window-position="1">
<vbox>
<menubar>
<menu>
<menuitem>
<label>Cyberspace Blessing 1</label>
<action>wavplay sound/cyberspace_1.wav &</action>
</menuitem>
<menuitem>
<label>Cyberspace Blessing 2</label>
<action>wavplay sound/cyberspace_2.wav &</action>
</menuitem>
<menuitem>
<label>Bell</label>
<action>wavplay sound/tinsha.wav &</action>
</menuitem>
<menuitem>
<label>Gong Burmese</label>
<action>wavplay sound/gong-burmese.wav &</action>
</menuitem>
<menuitem>
<label>Gong Chinese</label>
<action>wavplay sound/gong-chinese.wav &</action>
</menuitem>
<menuitem stock="gtk-quit">
<action>echo You selected the quit menu item</action>
<action type="exit">exit by menu</action>
</menuitem>
<label>Sounds</label>
</menu>
<menu>
<menuitem>
<action>`Xdialog --wrap --screencenter --left --title "5 Element Meditation" --msgbox "This will start a simple twenty five minute elemental meditation suitable for universal usage. It is a simple technique. Only regular use will develop mind skills. Used for centuries as an esoteric warrior meditation, it is particulary suited to balance energies and focus and harmonise ones internal component elements. Keep your back straight and your mind attentive. \n\n OM YA HA HUM" 600x0`</action>
<action>defaultbrowser file://`pwd`/videos/elements.swf &</action>
<label>Elemental meditation</label>
<action>exit</action>
</menuitem>
<menuitem>
<action>defaultbrowser file://`pwd`/videos/mudra.swf &</action>
<label>Mudra meditation</label>
<action>exit</action>
</menuitem>
<menuitem>
<label>Vajrasattva</label>
<action>`Xdialog --wrap --screencenter --left --title "Vajra" --msgbox "Vajrasattva. vajrasattva samayam anupālaya \n om Vajrasattva! Preserve the bond! \n\n Vajrasattvatvenopati ha \n As Vajrasattva stand before me. \n\n dridho me bhava \n Be firm for me. \n\n sutoshyo me bhava \n Be greatly pleased for me. \n\n suposhyo me bhava \n Deeply nourish me \n\n anurakto me bhava \n Love me passionately \n\n sarva siddhi ma me prayaccha \n Grant me siddhi in all things, \n\n sarvakarmasu ca me citta śreya kuru hūm \n And in all actions make my mind most excellent. hūm \n\n ha ha ha ha ho \n ha ha ha ha ho \n\n bhagavan sarvatathāgatavajra mā me muñka \n Blessed One! Vajra of all the tathāgatas! Do not abandon me. \n\n vajrī bhava mahāsamayasattva āh (hūm phat) \n Be the Vajra-bearer, Being of the Great Bond! āh (hūm phat)" 600x0`</action>
<action>defaultbrowser file://`pwd`/videos/vajra.swf &</action>
<action>exit</action>
</menuitem>
<menuitem>
<action>defaultbrowser file://`pwd`/html/chant.html &</action>
<action>defaultbrowser file://`pwd`/sound/tarafast.swf &</action>
<label>21 Tara Praise Scroller</label>
</menuitem>
<menuitem>
<label>Tara Mantra of Joy</label>
<action>defaultbrowser file://`pwd`/videos/taraom.swf &</action>
</menuitem>
<menuitem>
<label>Shingon Chant</label>
<action>flite "Welcome to Shingon"</action>
<action>`Xdialog --wrap --screencenter --left --title "Shingon Chant" --msgbox "Shingon. Keep your back straight and your mind attentive. \n\n OM YA HA HUM" 600x0`</action>
<action>defaultbrowser file://`pwd`/videos/shingon.swf &</action>
<action>exit</action>
</menuitem>
<label>Programs</label>
</menu>
<menu>
<menuitem>
<label>Basic Buddhism</label>
<action>defaultbrowser file://`pwd`/html/basics.html &</action>
</menuitem>
<menuitem>
<label>Shrine Building</label>
<action>defaultbrowser file://`pwd`/html/shrine1.html &</action>
</menuitem>
<menuitem>
<label>Meditation</label>
<action>`Xdialog --wrap --screencenter --left --title "Meditation" --msgbox "Info on Meditation practice. Requires internet connection to view. Keep your mind attentive. \n\n OM YA HA HUM" 600x0`</action>
<action>defaultbrowser http://buddhism.kalachakranet.org/meditation_practice.html &</action>
</menuitem>
<menuitem>
<action>`Xdialog --wrap --screencenter --left --title "Meditation" --msgbox "Info on Meditation practice. Requires internet connection to view. Keep your mind attentive. \n\n OM YA HA HUM" 600x0`</action>
<label>On Meditation</label>
<action>defaultbrowser http://www.youtube.com/watch?v=F3g4cNJgVwo &</action>
<action>exit</action>
</menuitem>
<menuitem>
<label>FAQS</label>
<action>defaultbrowser file://`pwd`/html/faqs.html &</action>
</menuitem>
<label>Help</label>
</menu>
</menubar>
<frame>
<pixmap>
<input file>videos/animrainbow.gif</input>
</pixmap>
<text><label>YinYana Alter Practice</label></text>
<text><label>March 21 2008</label></text>
</frame>
<hbox>
<button cancel></button>
</hbox>
</vbox>
</window>'
gtkdialog3 --program Vision
unset Vision |
_________________ Puppy Raspup 8.2 Final
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html 
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 4878 Location: Blue Springs, MO
|
Posted: Sun 08 Mar 2009, 00:45 Post subject:
|
|
This is what I came up with so far
Any suggestions to remove/add/change?
Edit - I forgot to put the following in firewall <action> section
rxvt -e ....
Description |
the script
|

Download |
Filename |
pcp.tar.bz2 |
Filesize |
1.38 KB |
Downloaded |
821 Time(s) |
Description |
Here is what I have so far |
Filesize |
69.83 KB |
Viewed |
2349 Time(s) |

|
_________________ Check out my github repositories. I may eventually get around to updating my blogspot.
|
Back to top
|
|
 |
aragon
Joined: 15 Oct 2007 Posts: 1698 Location: Germany
|
Posted: Sun 08 Mar 2009, 03:38 Post subject:
|
|
hi technosaurus,
GO ON! in my opinion, this would be a great improvement.
aragon
_________________ PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15588 Location: Paradox Realm
|
Posted: Sun 08 Mar 2009, 04:20 Post subject:
|
|
Agree with Aragon,
Excellent start
What does LANG=C do (near top of script)?
other possibilities:
Jwm configuration
Set date and time
Add software
screensaver /usr/local/apps/Xlock
Psip configuration
_________________ Puppy Raspup 8.2 Final
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html 
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 4878 Location: Blue Springs, MO
|
Posted: Sun 08 Mar 2009, 19:51 Post subject:
|
|
@Lobster - LANG=C supposedly helps scripts to run faster - Barry discovered this while testing woof.
Anyhow I finished it and got all except PSIP
I may replace the Browser "seamonkey about:config" with PSIP though since so many puplets cut seamonkey ... I tried to do "defaultbrowser about:config" but the mozstart automatically prepends "file://" so that was a no go
...need to test at lower resolution, try on different puppies...
Edit - removed Pwidgets since it is easily accessible from the Pwidgets dock on the desktop... replaced with PSIP
Description |
pic with PSIP |
Filesize |
56.97 KB |
Viewed |
2975 Time(s) |

|
Description |
with PSIP instead of Pwidgets
|

Download |
Filename |
pcp.bz2 |
Filesize |
2.17 KB |
Downloaded |
749 Time(s) |
_________________ Check out my github repositories. I may eventually get around to updating my blogspot.
|
Back to top
|
|
 |
WhoDo

Joined: 11 Jul 2006 Posts: 4440 Location: Lake Macquarie NSW Australia
|
Posted: Mon 09 Mar 2009, 00:43 Post subject:
|
|
technosaurus wrote: | Anyhow I finished it and got all except PSIP...[snip]...
Edit - removed Pwidgets since it is easily accessible from the Pwidgets dock on the desktop... replaced with PSIP |
It may be a stupid question but what are the "?" marks for ... help? May I suggest you do away with all the separate help buttons and have a single help button that points at a linked help page or index. It would simplify the whole look of the panel, IMHO. Just a thought.
_________________ Actions speak louder than words ... and they usually work when words don't!
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 4878 Location: Blue Springs, MO
|
Posted: Mon 09 Mar 2009, 01:22 Post subject:
|
|
They are just help dialogs that give a brief description of the program...
A separate help window would probably be good. I set it up for the impatient, yet slow reader types like myself.
_________________ Check out my github repositories. I may eventually get around to updating my blogspot.
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15588 Location: Paradox Realm
|
Posted: Mon 09 Mar 2009, 04:11 Post subject:
|
|
technosaurus wrote: | They are just help dialogs that give a brief description of the program...
A separate help window would probably be good. I set it up for the impatient, yet slow reader types like myself. |
Most of the linked to programs/wizards have help / explanations
You could use a menu bar to create help and other options (if they arise)
something like:
Code: | <menubar>
<menu>
<menuitem>
<label>PSIP</label>
<action>leafpad setupPSIP.txt &</action>
</menuitem>
<menuitem> |
loading a text editor is not the best way - but the easiest to set up
_________________ Puppy Raspup 8.2 Final
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html 
|
Back to top
|
|
 |
esmourguit

Joined: 17 Nov 2006 Posts: 1411 Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie
|
Posted: Mon 09 Mar 2009, 04:51 Post subject:
|
|
Bonjour,
I like this panel.
About "?"
The reading of the panel would be clearer if the display of information by "?" were given by moving the mouse cursor over an icon, as once in the install package PET wizard (old petget),
If it is possible to do.
Cordialement
Edit PCP in french
Description |
|
Filesize |
58.16 KB |
Viewed |
2503 Time(s) |

|
_________________ Toutou Linux - Paquets français
|
Back to top
|
|
 |
|