Page 23 of 76

Posted: Fri 31 Dec 2010, 03:46
by 01micko
Works for me :D

Thanks Sigmund

(by the way, there is no "woof" repo per sé ... as in the building blocks of woof, you'd need to actually download woof.. but what you did I think is close enough :wink: . The screeny is of the current spup, it's from woof December 22, I'll update next week)

Posted: Fri 31 Dec 2010, 08:20
by zigbert
Maybe this feels more logical ?

Image

Posted: Wed 05 Jan 2011, 23:48
by Bert
Thanks for this Zigbert!
Installed and works fine.
I'll keep a copy on HD, to add to any new puppy I install.
(yes, I like your second version better)

Posted: Mon 17 Jan 2011, 00:31
by Geoffrey
Bert wrote:Thanks for this Zigbert!
Installed and works fine.
I'll keep a copy on HD, to add to any new puppy I install.
(yes, I like your second version better)
I'll second that, looks great, vast improvement on the old style.

Posted: Tue 18 Jan 2011, 01:21
by Lobster
We will get two versions of ppm in woof builds - ziggy (this one) and classic according to Barry
http://bkhome.org/blog/?viewDetailed=02092

Excellent.
Recently using Spup with the new PPM, I was struck with how much better it was.

I wonder if Ziggy can integrate or become closer to quickpet, or maybe even call it if available? Perhaps with an aps button?

Did you know PET stands for Puppy Extra Treats?
http://www.puppylinux.com/download/release-2.14.htm

Puppy
Linux gone Ziggy

Not working as it should in Quirky120NOP

Posted: Tue 25 Jan 2011, 00:11
by Geoffrey
I tried this in Quirky 120 NOP, the first version doesn't work at all, the second one works, but when different category's are selected it don't refresh the package list until any of the package types are either deselected or selected again, everything else works fine

Posted: Fri 28 Jan 2011, 07:58
by 8-bit
I do not see a window in the example screen that shows the installed Pet packages.
I often refer to it to see what I have installed and also to remove packages that I installed without using the PPM.
So does it include a window showing installed packages?

Never Mind! :oops: I really should have used it before bringing up my question.
After using it, I found out how and now I feel like a real nobe.

Posted: Sun 13 Feb 2011, 21:46
by zigbert
>> What widget should get focus.
<entry is-focus="true">...</entry>

How to assign values to notebook tabs

Posted: Sat 05 Mar 2011, 10:27
by Karl Godt
While experimenting with different keyboard layouts
( starting with assigning keys to /etc/inputrc for the different terminals ( rxvt, urxvt, sakura ))
I stumbled over the xkbconfigmanager dy Dougal which is working very well so far,
but it has no feature to create additional
Identifier "Keyboard[0-9]"
than
Identifier "Keyboard0"
( /etc/X11/xorg.conf )
or handle more than this one Keyboard0 .

I managed to add tabs see shot but i don't know how to add variables when pressing a <notebook labels=\"$LABELS\">

like
if pressed notebook label X ; then KB=X; fi
or
[ "$LABELY" ] && KB=Y

Posted: Fri 25 Mar 2011, 15:58
by technosaurus
This link was posted in additional software, for slim (desktop login tool) ... it uses gtkdialog (note: script is missing puppy's "3" suffix)

http://dev.unity-linux.org/projects/uni ... lim_config

The thread is here:
http://www.murga-linux.com/puppy/viewtopic.php?t=63142

Posted: Fri 25 Mar 2011, 22:35
by disciple
Hi guys,
I just wanted to confirm: as far as we know it is not possible with gtkdialog to create a program which does something with text as you enter it into a text entry box. Is that correct?
Does anyone know of anything similar to gtkdialog (something that is used to build a gui for a shell script) that this is possible with?

Posted: Sat 26 Mar 2011, 03:10
by big_bass
removed answer solved

Posted: Sat 26 Mar 2011, 03:32
by seaside
disciple wrote:gtkdialog to create a program which does something with text as you enter it into a text entry box. Is that correct?
disciple,

You might use this coding-

Code: Select all

<action signal="key-press-event"> 
so that anything keyed into a text box would be tied to an action event every time a key was pressed.

Cheers,
s

Posted: Sat 26 Mar 2011, 07:08
by zigbert
disciple,

You might use this coding-

Code: Select all

<action signal="key-press-event"> 
so that anything keyed into a text box would be tied to an action event every time a key was pressed.

Cheers,
s
Pmusic uses this technique to search while typing

Code: Select all

 <entry activates-default=\"true\" tooltip-text=\"$LOC406\" is-focus=\"true\">
  <variable>SEARCH</variable>
  <input>cat $WORKDIR/filebrowser_dir</input>
  <width>200</width><height>30</height>
  <action signal=\"key-release-event\">$APPDIR/func -search &</action>
 </entry>
You might miss a 'refresh' command, but this is done via a <progressbar>


Sigmund

Posted: Sat 26 Mar 2011, 08:51
by disciple
disciple,

You might use this coding-

Code: Select all

<action signal="key-press-event"> 
so that anything keyed into a text box would be tied to an action event every time a key was pressed.

Cheers,
s
Pmusic uses this technique to search while typing
Yes, that's what I wanted. Thanks.

Code: Select all

 <entry activates-default=\"true\" tooltip-text=\"$LOC406\" is-focus=\"true\">
  <variable>SEARCH</variable>
  <input>cat $WORKDIR/filebrowser_dir</input>
  <width>200</width><height>30</height>
  <action signal=\"key-release-event\">$APPDIR/func -search &</action>
 </entry>
You might miss a 'refresh' command, but this is done via a <progressbar>
I don't quite understand what you're saying there. I guess if it affects me I'll notice it :)

Another thing:
Drag'n drop
>> Gtkdialog supports drag'n drop from filebrowser (rox) to <entry> widget.

Code: Select all

export test="
<entry accept=\"directory\" width-request=\"300\">
 <default>Drag a directory from Rox</default>
</entry>"
gtkdialog3 -p test
Again I don't think this is possible, but maybe I'm wrong: can we make it perform an action when something is dragged into the <entry> widget? (This is not essential for the program I want to make, but it would be nice :))

gtk-stock button images

Posted: Tue 29 Mar 2011, 20:11
by mcewanw
Does anyone know where to get a complete list of gtk-stock button image names for use in gtkdialog3? I once had a list but can't remember where I found it.

EDIT: Okay, the following list gave me what I wanted:

http://gtk.php.net/manual/en/gtk.enum.stockitems.php

Re: gtk-stock button images

Posted: Tue 29 Mar 2011, 21:31
by Dougal
mcewanw wrote:Does anyone know where to get a complete list of gtk-stock button image names for use in gtkdialog3? I once had a list but can't remember where I found it.

EDIT: Okay, the following list gave me what I wanted:

http://gtk.php.net/manual/en/gtk.enum.stockitems.php
One of the gtkdialog example scripts also shows all of them.

Re: gtk-stock button images

Posted: Wed 30 Mar 2011, 02:24
by technosaurus
mcewanw wrote:Does anyone know where to get a complete list of gtk-stock button image names for use in gtkdialog3? I once had a list but can't remember where I found it.

EDIT: Okay, the following list gave me what I wanted:

http://gtk.php.net/manual/en/gtk.enum.stockitems.php
I posted a gtkdialog example that shows them with the name in a tooltip ... several pages back.

Re: GtkDialog - tips

Posted: Tue 05 Apr 2011, 01:53
by Moose On The Loose
zigbert wrote:GtkDialog
GtkDialog lets your bash script run in gui.
Here's some tips for learning more about gtkdialog.

This info is based on input from many people. I'm trying to throw it all together. Please share your knowledge.

Patriot has released his Patriot-edition of the latest gtkdialog. - See chapter 'Gtkdialog - Patriot edition'.
There is a silly little bug in the current version. I saw some indication that others may be working on an improved version so I figured I would tell anyone in that situation about it so that the correction can be in the next version.

gtkdialog won't take its input from stdin. The copy of main.c here shows where the error is. Search for "Moose:" to see the change.

Re: GtkDialog - tips

Posted: Fri 08 Apr 2011, 23:50
by wiak
zigbert wrote: 11.) Useful Puppy scripts - Others might have invented the wheel for you
--> Tailbox
--> Program chooser
--> Alternative browser widget
--> Audio player
--> Volume level
--> File finder
. . .
http://www.murga-linux.com/puppy/viewto ... 732#143732
zigbert wrote:Here is the collection of ziggys fresh meat.
A minimalistic way of coding and a tribute to bash and gtkdialog.
Do you want to learn more about gtkdialog, check this.
Thanks to russoodle for hosting my code

Sigmund Berglund
. . .

GtkDialog widgets
More info | Download | External menus (1 kb) Allow right-click menus in gtkdialog
More info | Download | Audio player (1 kb) Supports most common audioformats like mp3, ogg, wav, ...
More info | Download | Browser (1 kb) Alternative to the builtin browser widget
More info | Download | Tail box (1 kb) Gtkdialog misses a tailbox widget
More info | Download | Vertical slider (1 kb) Volume level
Sigmund, some of your tutorial example download links seem to be dead. Some, because puppyasia repository is now gone, but your Stardust resources page also has dead download links. For example, the following example code downloads, amongst others listed there, are not available:

gtkdialog_widget_browser.tar.gz
gtkdialog_widget_tailbox.tar.gz