Page 22 of 76

Posted: Fri 03 Dec 2010, 16:51
by zigbert
Paul

Some months ago, I sent Barry an example of a scalable ppm-gui. He did not respond, so it looks like you and me finds ppm more irritating than Barry :)
As long as a <tree>, <table>, <list> or <edit> widget is enclosed ONLY by a <hbox> OR <vbox>, the widget will remain scalable both horizontally and vertically.
This means the complete xml-code, - not only the specific widget.


Sigmund

link out of date

Posted: Thu 30 Dec 2010, 18:30
by don570
Your link on first page
http://forum.goblinx.com.br/viewtopic.php?p=3418#3418
for goblinX forum is out of date.

__________________________________

Re: link out of date

Posted: Thu 30 Dec 2010, 19:39
by zigbert
don570 wrote:Your link on first page
http://forum.goblinx.com.br/viewtopic.php?p=3418#3418
for goblinX forum is out of date.
Have anyone seen a mirror of this?


Sigmund

Posted: Thu 30 Dec 2010, 21:24
by BarryK
zigbert wrote:Paul

Some months ago, I sent Barry an example of a scalable ppm-gui. He did not respond, so it looks like you and me finds ppm more irritating than Barry :)
As long as a <tree>, <table>, <list> or <edit> widget is enclosed ONLY by a <hbox> OR <vbox>, the widget will remain scalable both horizontally and vertically.
This means the complete xml-code, - not only the specific widget.


Sigmund
Sigmund,
That must have fallen off my radar, I have no recollection of it. Was it a pm that you sent me? Could you send it again?

Posted: Fri 31 Dec 2010, 02:51
by zigbert
Barry
I have only touched the gtkdialog code (I hope). In addition it writes a unique gtk-theme to show the category icons (the code is below the gtkdialog code). As the image shows, these icons are the same as the menu-icons.

Image

If anyone else want to try it you must replace the attached file with /usr/local/petget/pkg_chooser.sh. Remember to change the attribute to executable.

I grabbed the pkg_chooser.sh script from Luci 517, since I could not find the woof repo ?


Sigmund

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