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 Fri 24 Oct 2014, 05:54
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 37 of 64 [955 Posts]   Goto page: Previous 1, 2, 3, ..., 35, 36, 37, 38, 39, ..., 62, 63, 64 Next
Author Message
disciple

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

PostPosted: Sat 25 Jun 2011, 05:26    Post subject:  

Hi guys,
I think it would be really good to build a list of all significant gtkdialog programs. I have made a thread at http://www.murga-linux.com/puppy/viewtopic.php?p=537775#537775
Which ones can you remember that I've missed?
Do you know of any other distros (or developers using other distros) that make or have made extensive use of gtkdialog?

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
8-bit


Joined: 03 Apr 2007
Posts: 3382
Location: Oregon

PostPosted: Sat 25 Jun 2011, 08:44    Post subject:  

I saw your start of a list post disciple. Good work.

Also, for those interested in examining others gtkdialog scripts to learn,
there is a very good article on building a GUI using gtkdialog by
PCLinuxOS magazine.
I found it on the developer site created by thunor.

It is an interesting read and the source to the script is included there.
It was written for a KDE linux so some things will not work without modification.
The direct link is http://pclosmag.com/html/Issues/200910/page21.html.
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Sat 25 Jun 2011, 15:12    Post subject: gif animation  

Back to top
View user's profile Send private message 
Aitch


Joined: 04 Apr 2007
Posts: 6825
Location: Chatham, Kent, UK

PostPosted: Sat 25 Jun 2011, 15:49    Post subject:  

sorted out, this reads
Vovchik wrote:

Dear thunor,

I compiled your 14th mod and noticed that I do not get multiple gif animation any more - at least not in Pzombie.
Please have a look at this

http://www.murga-linux.com/puppy/viewtopic.php?t=57691&sid=be4d052ebae0261bda26584c61c490e0

... if you can. I use multiple gifs in that little script...

With thanks in advance and kind regards,
vovchik


Aitch Smile
Back to top
View user's profile Send private message 
thunor


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

PostPosted: Sat 25 Jun 2011, 20:57    Post subject:  

Aitch wrote:
sorted out, this reads
Vovchik wrote:

Dear thunor,

I compiled your 14th mod and noticed that I do not get multiple gif animation any more - at least not in Pzombie.
Please have a look at this

http://www.murga-linux.com/puppy/viewtopic.php?t=57691&sid=be4d052ebae0261bda26584c61c490e0

... if you can. I use multiple gifs in that little script...

With thanks in advance and kind regards,
vovchik


Aitch Smile

Hi vovchik and Aitch

<pixmap> widget 0.7.20 syntax:
Code:
<pixmap tag_attr="n" tag_attr="n" ...>
   <variable>varname</variable>
   <visible>state</visible>
   <input file stock="gtk-image"></input>
   <input file>filename</input>
</pixmap>

<pixmap> widget 0.7.21 syntax:
Code:
<pixmap tag_attr="n" tag_attr="n" ...>
   <variable>varname</variable>
   <visible>state</visible>
   <width>n</width>            ## Width to scale image
   <height>n</height>            ## Height to scale image
   <input file stock="gtk-image"></input>
   <input file>filename</input>
</pixmap>

This is a snippet from your pzombie application. You are erroneously using directives that previously had no effect:
Code:
<pixmap>
   <width>78</width>
   <input file>'$g9_img'</input>
</pixmap>
<pixmap>
   <width>78</width>
   <input file>'$g9_img'</input>
</pixmap>
etc. etc. etc., there's several of them.

This is the syntactically correct code:
Code:
<pixmap width-request="78">
   <input file>'$g9_img'</input>
</pixmap>
<pixmap width-request="78">
   <input file>'$g9_img'</input>
</pixmap>
etc. etc. etc., there's several of them.

In fact the image is 78 anyway so requesting it is unnecessary.

These are your Close, About and Exit buttons. You are erroneously using directives that previously had no effect and you have a missing height-request="40":
Code:
<button width-request="90">
   <height>40</height>
   <input file>'$g7_img'</input>
   <label>Close </label>
   <action>closewindow:show_about</action>
</button>
...
<button width-request="90" height-request="40">
   <height>40</height>
   <input file>'$g0_img'</input>
   <label> About  </label>                  
   <action type="launch">show_about</action>
</button>
<button width-request="90" height-request="40">
   <height>40</height>
   <input file>'$g5_img'</input>
   <label> Exit  </label>
   <action type="exit">=quit</action>
</button>

This is the syntactically correct code:
Code:
<button width-request="90" height-request="40">
   <input file>'$g7_img'</input>
   <label>Close </label>
   <action>closewindow:show_about</action>
</button>
...
<button width-request="90" height-request="40">
   <input file>'$g0_img'</input>
   <label> About  </label>                  
   <action type="launch">show_about</action>
</button>
<button width-request="90" height-request="40">
   <input file>'$g5_img'</input>
   <label> Exit  </label>
   <action type="exit">=quit</action>
</button>


Regards,
Thunor

Last edited by thunor on Sun 26 Jun 2011, 04:57; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Sun 26 Jun 2011, 04:46    Post subject: Thanks a million  

Dear thunor,

Thanks for the syntax fixes. I will post Pzombie again, as well as all my other gtkdialog scripts, with proper syntax (e.g. basho-bash, gxlat, markup editor, etc.). I had problems closing child windows with a button but just figured that bit out. Smile

With kind regards,
vovchik
Back to top
View user's profile Send private message 
8-bit


Joined: 03 Apr 2007
Posts: 3382
Location: Oregon

PostPosted: Sun 26 Jun 2011, 14:33    Post subject:
Subject description: gtkdialog snapshots
 

What I would like to see included in thunor's ongoing updates to gtkdialog is snapshots of it as updates get made to it.
It would be the most current version including all additions and updates.
It would save a lot of compiling each time a new feature or widget is added.
My problem is I am at a loss trying to keep up.

But I think a post that got updated as needed including the most recent update to gtkdialog would be great.

Also, with Zigbert maintaining a sort of manual, his tips post could be updated to show the added features and widgets with examples.

Am I asking too much?
Back to top
View user's profile Send private message 
zigbert


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

PostPosted: Sun 26 Jun 2011, 15:58    Post subject:  

8-bit
Look at this - thunor has started to document his work. That man has a huge resource.

http://code.google.com/p/gtkdialog/w/list

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
8-bit


Joined: 03 Apr 2007
Posts: 3382
Location: Oregon

PostPosted: Sun 26 Jun 2011, 23:48    Post subject:  

zigbert,
I will agree with you that thunor is doing a great job with gtkdialog as well as examples and usage explanations.
Changes are progressing so fast that it is hard to keep up and I am never quite sure what source files to download for trying to compile the latest.
So I guess I will just have to wait even though I am quite excited by the progress and new features.

I tried downloading the source files shown once and putting them in my gtkdialog src directory.
But I must have missed something because I cannot get it to compile.
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7835
Location: qld

PostPosted: Mon 27 Jun 2011, 00:43    Post subject:  

Hi 8-bit

This is my routine Wink (this all in one terminal but you could make a script if you want). I just download it to /root, it's not that big.

Code:
# svn checkout http://gtkdialog.googlecode.com/svn/trunk/ gtkdialog-read-only
# cd gtkdialog-read-only
# make clean
# ./autogen.sh
# make
# cd src
# cp -a gtkdialog gtkdialog3
# strip gtkdialog3
#cp -af gtkdialog3 /usr/sbin


That's it! It's your ready to go. Optionally you can backup your original, but I haven't bothered lately.

On subsequent checkouts only the files that are new are overwritten, that's why make clean is important too. I always use autogen.sh too, something may have changed in the generated configure script and that overwrites it. You can run ./autogen.sh --prefix=/usr if you want too.

Cheers

(path corrected, thanks 8-bit)

_________________
Woof Mailing List | keep the faith Cool |

Last edited by 01micko on Mon 27 Jun 2011, 17:25; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
disciple

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

PostPosted: Mon 27 Jun 2011, 04:48    Post subject:  

8-bit wrote:
I tried downloading the source files shown once and putting them in my gtkdialog src directory.
But I must have missed something because I cannot get it to compile.

If you still have trouble, post the actual problem.

Last time I updated svn (yesterday) I found make clean wasn't enough and building was failing with a weird error. I fixed it by explicitly reverting everything, so I guess that must have deleted some autogenerated file that make clean didn't revert.

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
8-bit


Joined: 03 Apr 2007
Posts: 3382
Location: Oregon

PostPosted: Mon 27 Jun 2011, 12:18    Post subject:  

01micko,
What can I say? I never did know the ins and outs of getting the source code for downloading and was trying to go to the site and download each file individually. That was my first mistake.
So your howto helped a lot.
I still got an error using "make clean", but ignored it and went ahead and compiled and stripped the resulting file.
Now the latest example works! Very Happy
You have to remember that this is a learning process for me.

Along the same line, I am playing around with the System Information gtkdialog gui that I got from the PC Linux Magazine OS link on thunor's development site.
So far it has been a learning experience and also of a binary called "zenity" that can be used with gtkdialog.
Since zenity is part of puppy, that was interesting.

Also, You show copying gtkdialog3 to /usr/bin when in fact it should be /usr/sbin to maintain original placement.
Back to top
View user's profile Send private message 
seaside

Joined: 11 Apr 2007
Posts: 887

PostPosted: Mon 27 Jun 2011, 16:49    Post subject:  

8-bit wrote:
01micko,

Along the same line, I am playing around with the System Information gtkdialog gui that I got from the PC Linux Magazine OS link on thunor's development site.
So far it has been a learning experience and also of a binary called "zenity" that can be used with gtkdialog.
Since zenity is part of puppy, that was interesting.

.


8-bit,

For examples of what can be done with Gtkdialog, no better place than the various pups can be found. Control panels, simple programs, elaborate programs, utilities.etc.

Led by Zigbert, along with others, puppy pioneered and pushed Gtkdialog further than any other distro around.

Zenity has been taken over by YAD (Yet Another Dialog) which is being actively developed (see thread in Programming). Although it isn't in the general puppy releases, it can be downloaded as a pet.

Cheers,
s
Back to top
View user's profile Send private message 
8-bit


Joined: 03 Apr 2007
Posts: 3382
Location: Oregon

PostPosted: Tue 28 Jun 2011, 02:13    Post subject:  

seaside, thank you for that information.
I did not know that zenity had been taken over by YAD.

But the System Info GUI script was still interesting and I have and still am going through it to see what works with Puppy and what does not.
I have made some changes to the script to try to get puppy compatability, with icon changes and called applications.
I have not broke it yet and I figure since it was released under a gpl license, I can go ahead and play with it.
If I get anything that looks promising, I may share me efforts.
Back to top
View user's profile Send private message 
pemasu


Joined: 08 Jul 2009
Posts: 5463
Location: Finland

PostPosted: Wed 29 Jun 2011, 09:01    Post subject:  

Just downloaded the latest source and compiled the gtkdialog.
I installed it to the Midnight Sun Pup.
Smokey01 confirmed that quit button did not work in gtkdialog apps.
To be sure I redownloaded the source as posted above by 01micko and compiled it again. Same problem. Quit button does not close app.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 37 of 64 [955 Posts]   Goto page: Previous 1, 2, 3, ..., 35, 36, 37, 38, 39, ..., 62, 63, 64 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

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
[ Time: 0.1187s ][ Queries: 13 (0.0172s) ][ GZIP on ]