The time now is Thu 25 Feb 2021, 09:34
All times are UTC - 4 |
Page 31 of 101 [1505 Posts] |
Goto page: Previous 1, 2, 3, ..., 29, 30, 31, 32, 33, ..., 99, 100, 101 Next |
Author |
Message |
disciple
Joined: 20 May 2006 Posts: 7024 Location: Auckland, New Zealand
|
Posted: Fri 25 Mar 2011, 18:35 Post subject:
|
|
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
|
Back to top
|
|
 |
big_bass
Joined: 13 Aug 2007 Posts: 1742
|
Posted: Fri 25 Mar 2011, 23:10 Post subject:
|
|
removed answer solved
Last edited by big_bass on Sat 26 Mar 2011, 10:33; edited 1 time in total
|
Back to top
|
|
 |
seaside
Joined: 11 Apr 2007 Posts: 937
|
Posted: Fri 25 Mar 2011, 23:32 Post subject:
|
|
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: | <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
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 6629 Location: Valåmoen, Norway
|
Posted: Sat 26 Mar 2011, 03:08 Post subject:
|
|
Quote: | disciple,
You might use this coding-
Code: | <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: | <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
_________________ Stardust resources
|
Back to top
|
|
 |
disciple
Joined: 20 May 2006 Posts: 7024 Location: Auckland, New Zealand
|
Posted: Sat 26 Mar 2011, 04:51 Post subject:
|
|
Quote: | Quote: | disciple,
You might use this coding-
Code: | <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.
Quote: | Code: | <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:
Quote: | Drag'n drop
>> Gtkdialog supports drag'n drop from filebrowser (rox) to <entry> widget.
Code: | 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
|
Back to top
|
|
 |
mcewanw
Joined: 16 Aug 2007 Posts: 3200
|
Posted: Tue 29 Mar 2011, 16:11 Post subject:
gtk-stock button images |
|
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
|
Back to top
|
|
 |
Dougal

Joined: 19 Oct 2005 Posts: 2504 Location: Hell more grotesque than any medieval woodcut
|
Posted: Tue 29 Mar 2011, 17:31 Post subject:
Re: gtk-stock button images |
|
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
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 4878 Location: Blue Springs, MO
|
Posted: Tue 29 Mar 2011, 22:24 Post subject:
Re: gtk-stock button images |
|
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 github repositories. I may eventually get around to updating my blogspot.
|
Back to top
|
|
 |
Moose On The Loose

Joined: 24 Feb 2011 Posts: 970
|
Posted: Mon 04 Apr 2011, 21:53 Post subject:
Re: GtkDialog - tips Subject description: Updated: 13.Feb 2011 |
|
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.
Description |
|

Download |
Filename |
main.zip |
Filesize |
3.64 KB |
Downloaded |
588 Time(s) |
|
Back to top
|
|
 |
wiak
Joined: 11 Dec 2007 Posts: 2075 Location: not Bulgaria
|
Posted: Fri 08 Apr 2011, 19:50 Post subject:
Re: GtkDialog - tips Subject description: Updated: 13.Feb 2011 |
|
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/viewtopic.php?p=143732#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
|
Back to top
|
|
 |
big_bass
Joined: 13 Aug 2007 Posts: 1742
|
Posted: Fri 08 Apr 2011, 22:09 Post subject:
|
|
wiak
@zigbert
all those missing files are very small 1kb
so if someone has copies please post them in this thread
I will help out and up load any larger files to the server I am using (complements to Raffy)
if someone emails me them
Joe
|
Back to top
|
|
 |
Geoffrey

Joined: 30 May 2010 Posts: 2379 Location: Queensland
|
Posted: Thu 14 Apr 2011, 02:48 Post subject:
|
|
Hi everybody,
I was wondering if anyone had the code for the audio player that was at http://puppylinux.asia/tpp/zigbert/gtkdialog_widget_audioplayer.tar.gz.
I've searched for it but no luck, I'm in need of some simple audio player code with all the controls for a project that I'm working on.
thanks.
Geoffrey
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 6629 Location: Valåmoen, Norway
|
Posted: Sat 16 Apr 2011, 15:52 Post subject:
|
|
I have uploaded the widgets to http://www.meownplanet.net, but I could not find the tail-box...... I made a new one based on the code in Pburn
Links in main post are updated
Sigmund
_________________ Stardust resources
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 6629 Location: Valåmoen, Norway
|
Posted: Sat 16 Apr 2011, 15:54 Post subject:
|
|
Geoffrey wrote: | Hi everybody,
I was wondering if anyone had the code for the audio player that was at http://puppylinux.asia/tpp/zigbert/gtkdialog_widget_audioplayer.tar.gz.
I've searched for it but no luck, I'm in need of some simple audio player code with all the controls for a project that I'm working on.
thanks.
Geoffrey | audioplayer widget is available, but this is very old code, so you probably find more tricks if you look into /usr/local/pmusic/func_player
Sigmund
_________________ Stardust resources
|
Back to top
|
|
 |
thunor

Joined: 14 Oct 2010 Posts: 350 Location: Minas Tirith, in the Pelennor Fields fighting the Easterlings
|
Posted: Sun 05 Jun 2011, 17:53 Post subject:
|
|
Hi
I use various emulators that don't include a GUI. In the past I developed a front-end + trainer for visualboyadvance-1.7.2 using REALbasic but I want to liberate my code from this proprietary language (good though it is) and create a universal emulator front-end instead.
I fiddled with Gtkdialog using the excellent information within this thread and started to assemble a prototype, but displaying a screenshot of the selected game/ROM is a requirement and pixmap doesn't refresh, so instead of ditching this wonderfully rapid RAD tool I downloaded gtkdialog-0.7.20 and added the pixmap refresh code.
[EDIT] 20110618-22:01 Gtkdialog is now in a repository (see this post).
Gtkdialog is a popular tool but the original developer appears to have abandoned it, so why doesn't somebody create a new Gtkdialog2 Sourceforge project, import gtkdialog-0.7.20 into SVN and invite everybody to add their patches? Additionally the project can include a wiki to properly document it; just a thought.
Regards,
Thunor
Last edited by thunor on Sat 18 Jun 2011, 16:49; edited 8 times in total
|
Back to top
|
|
 |
|
Page 31 of 101 [1505 Posts] |
Goto page: Previous 1, 2, 3, ..., 29, 30, 31, 32, 33, ..., 99, 100, 101 Next |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|