GtkDialog - tips

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Message
Author
User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#436 Post 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

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

link out of date

#437 Post by don570 »

Your link on first page
http://forum.goblinx.com.br/viewtopic.php?p=3418#3418
for goblinX forum is out of date.

__________________________________

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

Re: link out of date

#438 Post 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

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#439 Post 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?
[url]https://bkhome.org/news/[/url]

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#440 Post 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
Attachments
pkg_chooser.sh.gz
(4.57 KiB) Downloaded 867 times

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#441 Post 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)
Attachments
ziggy_ppm.png
(162.03 KiB) Downloaded 3217 times
Puppy Linux Blog - contact me for access

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#442 Post by zigbert »

Maybe this feels more logical ?

Image
Attachments
pkg_chooser.sh.gz
(4.58 KiB) Downloaded 954 times

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#443 Post 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)
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#444 Post 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.

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

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

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

Not working as it should in Quirky120NOP

#446 Post 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

User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

#447 Post 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.

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#448 Post by zigbert »

>> What widget should get focus.
<entry is-focus="true">...</entry>

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

How to assign values to notebook tabs

#449 Post 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
Attachments
xkbconfigmanager.snapshot01.jpg
(154.7 KiB) Downloaded 777 times

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

#450 Post 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
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].

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#451 Post 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?
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

big_bass
Posts: 1740
Joined: Mon 13 Aug 2007, 12:21

#452 Post by big_bass »

removed answer solved
Last edited by big_bass on Sat 26 Mar 2011, 14:33, edited 1 time in total.

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#453 Post 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

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#454 Post 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

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#455 Post 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 :))
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

Post Reply