GtkDialog - tips
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?
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
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
disciple,disciple wrote:gtkdialog to create a program which does something with text as you enter it into a text entry box. Is that correct?
You might use this coding-
Code: Select all
<action signal="key-press-event">
Cheers,
s
Pmusic uses this technique to search while typingdisciple,
You might use this coding-so that anything keyed into a text box would be tied to an action event every time a key was pressed.Code: Select all
<action signal="key-press-event">
Cheers,
s
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>
Sigmund
Yes, that's what I wanted. Thanks.Pmusic uses this technique to search while typingdisciple,
You might use this coding-so that anything keyed into a text box would be tied to an action event every time a key was pressed.Code: Select all
<action signal="key-press-event">
Cheers,
s
I don't quite understand what you're saying there. I guess if it affects me I'll notice itYou might miss a 'refresh' command, but this is done via a <progressbar>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>
Another thing:
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 )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
Do you know a good gtkdialog program? Please post a link here
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
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
EDIT: Okay, the following list gave me what I wanted:
http://gtk.php.net/manual/en/gtk.enum.stockitems.php
github mcewanw
- Dougal
- Posts: 2502
- Joined: Wed 19 Oct 2005, 13:06
- Location: Hell more grotesque than any medieval woodcut
Re: gtk-stock button images
One of the gtkdialog example scripts also shows all of them.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
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Some say your nose
Some say your toes
But I think it's your mind
- technosaurus
- Posts: 4853
- Joined: Mon 19 May 2008, 01:24
- Location: Blue Springs, MO
- Contact:
Re: gtk-stock button images
I posted a gtkdialog example that shows them with the name in a tooltip ... several pages back.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
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].
- Moose On The Loose
- Posts: 965
- Joined: Thu 24 Feb 2011, 14:54
Re: GtkDialog - tips
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.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'.
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
Re: GtkDialog - tips
http://www.murga-linux.com/puppy/viewto ... 732#143732zigbert 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
. . .
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: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
gtkdialog_widget_browser.tar.gz
gtkdialog_widget_tailbox.tar.gz
Hi everybody,
I was wondering if anyone had the code for the audio player that was at http://puppylinux.asia/tpp/zigbert/gtkd ... yer.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
I was wondering if anyone had the code for the audio player that was at http://puppylinux.asia/tpp/zigbert/gtkd ... yer.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
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
Links in main post are updated
Sigmund
audioplayer widget is available, but this is very old code, so you probably find more tricks if you look into /usr/local/pmusic/func_playerGeoffrey wrote:Hi everybody,
I was wondering if anyone had the code for the audio player that was at http://puppylinux.asia/tpp/zigbert/gtkd ... yer.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
Sigmund
- thunor
- Posts: 350
- Joined: Thu 14 Oct 2010, 15:24
- Location: Minas Tirith, in the Pelennor Fields fighting the Easterlings
- Contact:
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
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, 20:49, edited 8 times in total.
Yes, we should do that. But not sourceforge - it always seems to be slow and unreliable for me.
What does anyone else think?
I have a project on google code and I think it is faster and more reliable. But it is also rather stupid in some ways...
What does anyone else think?
I have a project on google code and I think it is faster and more reliable. But it is also rather stupid in some ways...
Do you know a good gtkdialog program? Please post a link here
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
- abushcrafter
- Posts: 1418
- Joined: Fri 30 Oct 2009, 16:57
- Location: England
- Contact:
http://savannah.gnu.org/disciple wrote:What does anyone else think?
http://gna.org/
http://puszcza.gnu.org.ua/
[url=http://www.adobe.com/flashplatform/]adobe flash is rubbish![/url]
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/
- thunor
- Posts: 350
- Joined: Thu 14 Oct 2010, 15:24
- Location: Minas Tirith, in the Pelennor Fields fighting the Easterlings
- Contact:
http://en.wikipedia.org/wiki/Comparison_of_open_source_software_hosting_facilities
I looked at Google Project Hosting and it appears to tick the necessary boxes. It supports a wiki which would certainly make maintaining the documentation easier and more fun.
I sent the Gtkdialog author an email and he stated that he doesn't have time for the project anymore but would be happy for development to continue, so you can register "gtkdialog" as the project name
I looked at Google Project Hosting and it appears to tick the necessary boxes. It supports a wiki which would certainly make maintaining the documentation easier and more fun.
I sent the Gtkdialog author an email and he stated that he doesn't have time for the project anymore but would be happy for development to continue, so you can register "gtkdialog" as the project name
Yes, but do you have any feedback on what they are like to use.abushcrafter wrote:http://savannah.gnu.org/disciple wrote:What does anyone else think?
http://gna.org/
http://puszcza.gnu.org.ua/
e.g. Sourceforge seems to be slow and unreliable (for me).
Google code is not... but they seem to lack attention to detail. There is a list of little bugs as long as your arm.
e.g. you can't save the "source" settings page without entering a path for branches (which IIRC means that your repository must already include the folder to enter the path to... but what if you don't want branches?), and if you don't save the "source" settings page then it displays the wrong url for users to checkout the code... and IIRC it doesn't even tell you that the page did not save, and why. Perhaps that is why projects often display the wrong url
Also, presumably people would be happy with svn, rather than something more advanced like Git? Personally I think svn will be fine, as I doubt there will be a huge amount of activity.
Do you know a good gtkdialog program? Please post a link here
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
Wonderful !!!
My coding-fingers are trembling when hearing about dynamic pixmap rendering
I hope we get a pet with all patches.
The latest gtkdialog with patriots patches can be found here
- Moose On The Loose offered a fix here
- thunors very exiting patch is here
Barry's blog
http://bkhome.org/blog/?viewDetailed=01264
http://bkhome.org/blog/?viewDetailed=01279
Sigmund
My coding-fingers are trembling when hearing about dynamic pixmap rendering
I hope we get a pet with all patches.
The latest gtkdialog with patriots patches can be found here
- Moose On The Loose offered a fix here
- thunors very exiting patch is here
Barry's blog
http://bkhome.org/blog/?viewDetailed=01264
http://bkhome.org/blog/?viewDetailed=01279
Sigmund