PCP - Puppy Control Panel(s)

A home for all kinds of Puppy related projects
Message
Author
User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

PCP - Puppy Control Panel(s)

#1 Post by technosaurus »

Update: used gtkdialog3 and xdialog to produce the attached script and screenshot
Attachments
newpcp.png
puppy control panel screenshot
(55.92 KiB) Downloaded 2319 times
pcp.bz2
the script
(2.17 KiB) Downloaded 837 times
Last edited by technosaurus on Sun 08 Mar 2009, 23:55, edited 1 time in total.
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

raffy
Posts: 4798
Joined: Wed 25 May 2005, 12:20
Location: Manila

dvw86

#2 Post by raffy »

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? [url=http://puppylinux.info/topic/freeoffice-2012-sfs]Get the sfs (English only)[/url].

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#3 Post by technosaurus »

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 [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#4 Post by Lobster »

also consider using gtkdialog3 :)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#5 Post by technosaurus »

Lobster - any gtkdialog3 examples?
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#6 Post by aragon »

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 :cry:

aragon

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#7 Post by Lobster »

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: Select all

#! /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
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#8 Post by technosaurus »

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 ....
Attachments
pcp.tar.bz2
the script
(1.38 KiB) Downloaded 794 times
PCP.png
Here is what I have so far
(69.83 KiB) Downloaded 2320 times
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#9 Post by aragon »

hi technosaurus,

GO ON! in my opinion, this would be a great improvement.

aragon

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#10 Post by Lobster »

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.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#11 Post by technosaurus »

@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
Attachments
newpcp.png
pic with PSIP
(56.97 KiB) Downloaded 2944 times
pcp.bz2
with PSIP instead of Pwidgets
(2.17 KiB) Downloaded 725 times
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
WhoDo
Posts: 4428
Joined: Wed 12 Jul 2006, 01:58
Location: Lake Macquarie NSW Australia

#12 Post by WhoDo »

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.
[i]Actions speak louder than words ... and they usually work when words don't![/i]
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#13 Post by technosaurus »

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 [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#14 Post by Lobster »

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: Select all

  <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.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
esmourguit
Posts: 1410
Joined: Fri 17 Nov 2006, 14:45
Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie

#15 Post by esmourguit »

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
Attachments
pcp_french.png
(58.16 KiB) Downloaded 2458 times
[url=http://moulinier.net/][color=blue][b]Toutou Linux[/b][/color][/url] - [url=http://toutoulinux.free.fr/pet.php][color=blue][b]Paquets français[/b][/color][/url]

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#16 Post by technosaurus »

I initially wanted to put the help as a mouse-over, but couldn't find anything in puppy that could do it... thus the "?" help... if someone knows how to get mouse-over to work I would do it that way... anyone???
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
esmourguit
Posts: 1410
Joined: Fri 17 Nov 2006, 14:45
Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie

#17 Post by esmourguit »

Bonjour,
Sorry, I do not know how. In any case thank you for this program.
Cordialement ;)
[url=http://moulinier.net/][color=blue][b]Toutou Linux[/b][/color][/url] - [url=http://toutoulinux.free.fr/pet.php][color=blue][b]Paquets français[/b][/color][/url]

User avatar
WhoDo
Posts: 4428
Joined: Wed 12 Jul 2006, 01:58
Location: Lake Macquarie NSW Australia

#18 Post by WhoDo »

technosaurus wrote:I initially wanted to put the help as a mouse-over, but couldn't find anything in puppy that could do it... thus the "?" help... if someone knows how to get mouse-over to work I would do it that way... anyone???
David McClamrock (pa_mcclamrock) has almost finished Remaster Express (RemaX) and I've suggested to him that you might appreciate some assistance with this part of your project.

I also have some suggestions about content, if you have no objections. My suggestions are:
  • Add Firewall Configuration
  • Drop the Browser about:plugins page
  • Add Chooselocale
  • Add Set Timezone
  • Add set clock
  • Remove Gwhere (too obscure for newbies)
  • Remove Gparted (not a newbie option)
  • Change SAMBA to Windows LAN or similar
  • Change Netsetup to NetConnect
  • Plugging seems "obscure"
These are just suggestions, not requests, so please feel free to ignore them if they don't suit what you're trying to achieve.

Cheers
[i]Actions speak louder than words ... and they usually work when words don't![/i]
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#19 Post by technosaurus »

WhoDo wrote: My suggestions are:
  • Add Firewall Configuration - part of net setup
  • Drop the Browser about:plugins page - planned to already
  • Add Chooselocale - part of Country
  • Add Set Timezone - part of Country
  • Add set clock - part of Country
  • Remove Gwhere (too obscure for newbies) - planned to already
  • Remove Gparted (not a newbie option) - still think it should be there
  • Change SAMBA to Windows LAN or similar - changing to WinLAN
  • Change Netsetup to NetConnect - Changing to Net (has more than just connection or setup options)
  • Plugging seems "obscure" - thought it was more intuitive than eventmanager - other suggestions???
I'll take a look at David's code to see what I can see for mouse over
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
WhoDo
Posts: 4428
Joined: Wed 12 Jul 2006, 01:58
Location: Lake Macquarie NSW Australia

#20 Post by WhoDo »

technosaurus wrote:
WhoDo wrote:
  • Plugging seems "obscure" - thought it was more intuitive than eventmanager - other suggestions???
I'll take a look at David's code to see what I can see for mouse over
How about "Hotplug"? I dunno, even that seems pretty obscure to me, but it seems a tad less so than "plugging". :roll:

Whether or not you guys manage to resolve the mouseover help, I'd like to see the main screen simplified somewhat. Perhaps a single help page behind its own icon with descriptions of each PCP icon or something? IMHO something like this should be more welcoming to those who need it.

Keep up the good work, technosaurus! I know you'll worry it until it's done, just like a dog with a bone! :P
[i]Actions speak louder than words ... and they usually work when words don't![/i]
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com

Post Reply