Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 24 Jul 2014, 11:24
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
GtkDialog - tips
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 31 of 63 Posts_count   Goto page: Previous 1, 2, 3, ..., 29, 30, 31, 32, 33, ..., 61, 62, 63 Next
Author Message
disciple

Joined: 20 May 2006
Posts: 6425
Location: Auckland, New Zealand

PostPosted: 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?

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send_private_message 
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: Fri 25 Mar 2011, 23:10    Post_subject:  

removed answer solved
_________________
debian wheezy ,linux mint, slackware I use them all and they all have good points
Mint would be best for general users though

Edited_time_total
Back to top
View user's profile Send_private_message 
seaside

Joined: 11 Apr 2007
Posts: 886

PostPosted: 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
View user's profile Send_private_message 
zigbert


Joined: 29 Mar 2006
Posts: 5647
Location: Valåmoen, Norway

PostPosted: 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
View user's profile Send_private_message Visit_website 
disciple

Joined: 20 May 2006
Posts: 6425
Location: Auckland, New Zealand

PostPosted: 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 Smile

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

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send_private_message 
mcewanw

Joined: 16 Aug 2007
Posts: 2241
Location: New Zealand

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

_________________
Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.
Back to top
View user's profile Send_private_message Visit_website 
Dougal


Joined: 19 Oct 2005
Posts: 2505
Location: Hell more grotesque than any medieval woodcut

PostPosted: 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
View user's profile Send_private_message 
technosaurus


Joined: 18 May 2008
Posts: 4277

PostPosted: 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.

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
Moose On The Loose


Joined: 24 Feb 2011
Posts: 508

PostPosted: Mon 04 Apr 2011, 21:53    Post_subject: Re: GtkDialog - tips
Sub_title: 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.
main.zip
Description 
zip

 Download 
Filename  main.zip 
Filesize  3.64 KB 
Downloaded  209 Time(s) 
Back to top
View user's profile Send_private_message 
wiak

Joined: 11 Dec 2007
Posts: 59
Location: Travelling to the Philippines

PostPosted: Fri 08 Apr 2011, 19:50    Post_subject: Re: GtkDialog - tips
Sub_title: 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
View user's profile Send_private_message 
big_bass

Joined: 13 Aug 2007
Posts: 1747

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

_________________
debian wheezy ,linux mint, slackware I use them all and they all have good points
Mint would be best for general users though
Back to top
View user's profile Send_private_message 
Geoffrey


Joined: 30 May 2010
Posts: 1322
Location: Queensland Australia ɹǝpu∩uʍop

PostPosted: 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
View user's profile Send_private_message 
zigbert


Joined: 29 Mar 2006
Posts: 5647
Location: Valåmoen, Norway

PostPosted: 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
View user's profile Send_private_message Visit_website 
zigbert


Joined: 29 Mar 2006
Posts: 5647
Location: Valåmoen, Norway

PostPosted: 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
View user's profile Send_private_message Visit_website 
thunor


Joined: 14 Oct 2010
Posts: 350
Location: Minas Tirith, in the Pelennor Fields fighting the Easterlings

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

Edited_times_total
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 31 of 63 Posts_count   Goto page: Previous 1, 2, 3, ..., 29, 30, 31, 32, 33, ..., 61, 62, 63 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1184s ][ Queries: 13 (0.0191s) ][ GZIP on ]