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

mcewanw
Posts: 3169
Joined: Thu 16 Aug 2007, 10:48
Contact:

gtk-stock button images

#456 Post 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
github mcewanw

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

Re: gtk-stock button images

#457 Post 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.
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

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

Re: gtk-stock button images

#458 Post 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.
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
Moose On The Loose
Posts: 965
Joined: Thu 24 Feb 2011, 14:54

Re: GtkDialog - tips

#459 Post 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.
Attachments
main.zip
(3.64 KiB) Downloaded 556 times

wiak
Posts: 2040
Joined: Tue 11 Dec 2007, 05:12
Location: not Bulgaria

Re: GtkDialog - tips

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

Post Reply