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 19 Dec 2014, 06:14
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 29 of 65 [961 Posts]   Goto page: Previous 1, 2, 3, ..., 27, 28, 29, 30, 31, ..., 63, 64, 65 Next
Author Message
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: Sun 29 Aug 2010, 15:26    Post subject:  

Quote:
Download gtk-theme-switch2 from 3 posts above. You missed a attachment Smile


Sigmund



Thanks Sigmund

now its working Very Happy



*about two years ago I was working on an image viewer using imagelib and urxvt
yours is much better and lighter you may get some more formats to view with this
lib http://www.afterstep.org/afterimage/

I made an image viewer using the using the terminal
http://www.murga-linux.com/puppy/viewtopic.php?t=31254

I was looking for a light way to do this
thanks for posting your code

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

Joined: 23 Jan 2009
Posts: 76
Location: California

PostPosted: Thu 23 Sep 2010, 22:02    Post subject: Re: GtkDialog - tips
Subject description: Updated: 5.Sep 2010
 

zigbert wrote:
GtkDialog
Patriot has released his Patriot-edition of the latest gtkdialog. - See chapter 'Gtkdialog - Patriot edition'.


What should I see if I say:
gtkdialog3 --version

I currently see
gtkdialog version 0.7.20 (C) 2004, 2005, 2006, 2007 by Laszlo Pere


I have found a handful of very serious bugs in it and want to be sure that I am using the latest version.

In the copy I have, the list_actions example does not work.
Back to top
View user's profile Send private message 
Aitch


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

PostPosted: Fri 24 Sep 2010, 12:53    Post subject:  

Ken

From the gtkdialog website,

http://linux.pte.hu/~pipas/gtkdialog/

the version you have IS the latest, though it was posted in April 2007, and development seems to have stopped, though the dev's email is on the site
As I understand it Patriot has made some changes for Puppy users adding *buntu patches

http://www.murga-linux.com/puppy/viewtopic.php?p=355081#355081

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

Joined: 23 Jan 2009
Posts: 76
Location: California

PostPosted: Sat 25 Sep 2010, 10:50    Post subject:  

Aitch wrote:
Ken

From the gtkdialog website,

http://linux.pte.hu/~pipas/gtkdialog/

the version you have IS the latest, though it was posted in April 2007, and development seems to have stopped, though the dev's email is on the site
As I understand it Patriot has made some changes for Puppy users adding *buntu patches

http://www.murga-linux.com/puppy/viewtopic.php?p=355081#355081

Aitch Smile


I think I must be running the Patriot version because I downloaded the pet for it and installed it.

Is there any interest in a less buggy version? I am trying to work up enough motivation to attack the problem.

The main bug I have found is that some valid descriptions involving the "<list>" construct do not display. They don't report an error but no dialog box comes up. The program hangs at that point until you ^C tp break out of it.

There are a few improvements that I am thinking of adding too.
One is to all things like this to work:

Code:

<text>
<variable>TEXT</variable>
<input>SomeScript</input>
</text>
....somewhere else..
<action>refresh:TEXT</action>


If the <text> was an entry instead, the TEXT variable would get changed so the script could know what it generated last time.
As it is <text> seems to allow a <variable> but not ever update
its contents.

I figure this would be a matter to looking at how an entry did it and making the text one do the same.

One other change is to make the xalign="0" construct work for all widgets.

The other would be to make the parser generate a warning on unrecognized attributes. This would help to catch typos.
Back to top
View user's profile Send private message 
8-bit


Joined: 03 Apr 2007
Posts: 3398
Location: Oregon

PostPosted: Tue 28 Sep 2010, 08:45    Post subject:  

I too would like to see the list option work right and have the same problem with it as you described.
But I am not enough of a programmer to troubleshoot it.
I do know that it fails even using the example in the gtkdialog3 examples.
So any help in improvements of gtkdialog3 would be most welcome.
The main thing is that a lot of scripts have been written for Puppy using it and any changes should be made so as to not break existing scripts.
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4424

PostPosted: Tue 28 Sep 2010, 11:45    Post subject:  

It is a new feature, not a bug... If I recall the previous method couldn't use items with spaces unless you used quotes and then it caused other problems.

VAR1="<combobox><variable>COMBO1</variable>"
for x in `ls ./*.pet`; do VAR1=$VAR1"<item>"$x"</item>"; done
VAR1=$VAR1"</combobox>"

this one will list all pets in the current directory

A similar method also works for checkbox and radiobox, except that you need to have a variable for each entry ... there is an example of this in bbgui (I posted it earlier in the thread)... it uses eval to set up a series of variable names from 1 to N and has templates for most input types.

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
zigbert


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

PostPosted: Tue 28 Sep 2010, 11:51    Post subject:  

ken geometrics
Improvements of gtkdialog is very welcomed. Smile
You find Patriots gtkdialog-source in the main post.


Sigmund

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

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

PostPosted: Wed 29 Sep 2010, 00:51    Post subject:  

ken geometrics wrote:
Is there any interest in a less buggy version? I am trying to work up enough motivation to attack the problem.

Yes, any improvements to gtkdialog would be fantastic, as Puppy uses it so much Smile

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


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

PostPosted: Tue 16 Nov 2010, 13:05    Post subject:  

This example especially shows 3 features of gtkdialog
- progressbars with fixed size
- right click menu
- change an icon in <tree> widget without re-render gui.

Updating icons in tree requires gtk-theme-switch (attached). This could replace gtk-chtheme with this
example.tar.gz
Description 
gz

 Download 
Filename  example.tar.gz 
Filesize  3.39 KB 
Downloaded  400 Time(s) 
gtk-theme-switch-i386.pet
Description 
pet

 Download 
Filename  gtk-theme-switch-i386.pet 
Filesize  11.57 KB 
Downloaded  368 Time(s) 

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


Joined: 18 May 2008
Posts: 4424

PostPosted: Tue 16 Nov 2010, 16:39    Post subject:  

Very Nice!
- I think a parted frontend has been on the back burner of many puppy devs for a while (myself include), just waiting for a starting point.
- great work, I can't wait to test it out.

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
zigbert


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

PostPosted: Wed 17 Nov 2010, 06:03    Post subject:  

technosaurus wrote:
Very Nice!
- I think a parted frontend has been on the back burner of many puppy devs for a while (myself include), just waiting for a starting point.
- great work, I can't wait to test it out.
Be aware!
This is not a frontend for parted. - Just a silly try to see if gtkdialog is capable to show a proper gui for a gparted-clone.


Sigmund

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


Joined: 18 May 2008
Posts: 4424

PostPosted: Wed 17 Nov 2010, 14:47    Post subject:  

It looks like you have succeeded in that - If you write the stubs for the functions your GUI needs, I'd be happy to help with writing them
Code:
some_function() { #what you want it to do
}
it could stay as inline documentation... but ...umm that would be backwards from almost every other open source project - writing the documentation first (or at all) - setting up an api and writing the code to achieve its goals - unheard of ... I must have momentarily stepped into an alternate dimension
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
abushcrafter


Joined: 30 Oct 2009
Posts: 1447
Location: England

PostPosted: Wed 17 Nov 2010, 15:14    Post subject:  

technosaurus wrote:
it could stay as inline documentation... but ...umm that would be backwards from almost every other open source project - writing the documentation first (or at all) - setting up an api and writing the code to achieve its goals - unheard of ... I must have momentarily stepped into an alternate dimension
Sounds interesting...
_________________
adobe flash is rubbish!
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/
Back to top
View user's profile Send private message Visit poster's website 
zigbert


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

PostPosted: Thu 18 Nov 2010, 13:33    Post subject:  

technosaurus wrote:
It looks like you have succeeded in that - If you write the stubs for the functions your GUI needs, I'd be happy to help with writing them
Code:
some_function() { #what you want it to do
}
it could stay as inline documentation... but ...umm that would be backwards from almost every other open source project - writing the documentation first (or at all) - setting up an api and writing the code to achieve its goals - unheard of ... I must have momentarily stepped into an alternate dimension
Thanks for the invite........here is the status
- Barry suggested that bacon might be a better alternative for such a gui. I f he or anyone intend to build it, I think that is a wonderful idea. His words just inspired me to check out how gtkdialog could handle such a task (with our knowledge today).
- I am in a hectic period at the moment..... things will slow down after Christmas. I hardly write command-lines these days.
- I don't know anything about parted nor partitions, so help would be required if we say 'go'.
- If you or anyone want to build further on the gui, it's yours.


Sigmund

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

Joined: 16 Jun 2006
Posts: 2308
Location: Wyoming, USA

PostPosted: Thu 02 Dec 2010, 21:40    Post subject:  

Quote:
As long as a <tree>, <table>, <list> or <edit> widget is enclosed ONLY by a <hbox> OR <vbox>, the widget will remain scalable both horizontally and vertically.


Zigbert, I must confess I have not read all 29 pages of this thread, but the above comment in your OP got my attention.

I have been looking at PPM, specifically the file /usr/local/petget/pkg_chooser.sh. If you run PPM, only the installed packages list is stretchable horizontally, and neither list is vertically. Yet it seems to conform to your condition above.

This has been bugging me because it makes PPM more difficult to use. When you can get a little time, if you could look at the code I'd appreciate it.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 29 of 65 [961 Posts]   Goto page: Previous 1, 2, 3, ..., 27, 28, 29, 30, 31, ..., 63, 64, 65 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.1084s ][ Queries: 12 (0.0145s) ][ GZIP on ]