Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 23 Oct 2014, 11:59
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
PCP - Puppy Control Panel(s)
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 4 [58 Posts]   Goto page: 1, 2, 3, 4 Next
Author Message
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: 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
newpcp.png
 Description   puppy control panel screenshot
 Filesize   55.92 KB
 Viewed   1850 Time(s)

newpcp.png

pcp.bz2
Description  the script
bz2

 Download 
Filename  pcp.bz2 
Filesize  2.17 KB 
Downloaded  600 Time(s) 

_________________
Web Programming - Pet Packaging 100 & 101

Last edited by technosaurus on Sun 08 Mar 2009, 19:55; edited 1 time in total
Back to top
View user's profile Send private message 
raffy

Joined: 25 May 2005
Posts: 4779
Location: Manila

PostPosted: 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
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: 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.
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Sat 07 Mar 2009, 00:34    Post subject:  

also consider using gtkdialog3 Smile
_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Sat 07 Mar 2009, 10:25    Post subject:  

Lobster - any gtkdialog3 examples?
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
aragon

Joined: 15 Oct 2007
Posts: 1698
Location: Germany

PostPosted: 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 Crying or Very sad

aragon

_________________
PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: 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 WIKI
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: 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 ....
pcp.tar.bz2
Description  the script
bz2

 Download 
Filename  pcp.tar.bz2 
Filesize  1.38 KB 
Downloaded  501 Time(s) 
PCP.png
 Description   Here is what I have so far
 Filesize   69.83 KB
 Viewed   1939 Time(s)

PCP.png


_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
aragon

Joined: 15 Oct 2007
Posts: 1698
Location: Germany

PostPosted: 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
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Sun 08 Mar 2009, 04:20    Post subject:  

Agree with Aragon,

Excellent start Smile
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 WIKI
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: 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
newpcp.png
 Description   pic with PSIP
 Filesize   56.97 KB
 Viewed   2356 Time(s)

newpcp.png

pcp.bz2
Description  with PSIP instead of Pwidgets
bz2

 Download 
Filename  pcp.bz2 
Filesize  2.17 KB 
Downloaded  511 Time(s) 

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
WhoDo


Joined: 11 Jul 2006
Posts: 4441
Location: Lake Macquarie NSW Australia

PostPosted: 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
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: 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.

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: 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 Smile

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
esmourguit


Joined: 17 Nov 2006
Posts: 1288
Location: Sur l'ile aux oiseaux.

PostPosted: 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 Wink

Edit PCP in french
pcp_french.png
 Description   
 Filesize   58.16 KB
 Viewed   1866 Time(s)

pcp_french.png


_________________
Toutou Linux - Pets francisés
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 4 [58 Posts]   Goto page: 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1175s ][ Queries: 13 (0.0144s) ][ GZIP on ]