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 Tue 23 Jul 2019, 14:00
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
YAD - Tips
Post new topic   Reply to topic View previous topic :: View next topic
Page 4 of 42 [630 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, ..., 40, 41, 42 Next
Author Message
Geoffrey


Joined: 30 May 2010
Posts: 2377
Location: Queensland

PostPosted: Tue 26 May 2015, 04:37    Post subject:  

The only way I know of displaying an image from a list, is in a file selector with a preview

Code:
yad --file-selection --add-preview
yad-preview.png
 Description   
 Filesize   108.24 KB
 Viewed   1450 Time(s)

yad-preview.png


_________________
Carolina: Recent Repository Additions

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


Joined: 23 Nov 2006
Posts: 11266

PostPosted: Tue 26 May 2015, 05:24    Post subject:  

Hmm could the icons box be used in some way...might be messy though as its intended as a launcher dialog for desktop files...

yad --help-icons

mike
Back to top
View user's profile Send private message 
stemsee

Joined: 27 Jun 2013
Posts: 2363
Location: In The Way

PostPosted: Tue 26 May 2015, 09:13    Post subject:  

Thanks Geoffrey

That is better than what I have now.
Back to top
View user's profile Send private message MSN Messenger 
stemsee

Joined: 27 Jun 2013
Posts: 2363
Location: In The Way

PostPosted: Tue 26 May 2015, 09:47    Post subject:  

In fact I am getting thumbnails in yad and preview.
Code:
wp=`yad --title "Select Wallpapers" --geometry=400x500 --file-selection --multiple --add-preview`
capture30443.jpg
 Description   
 Filesize   46.79 KB
 Viewed   1326 Time(s)

capture30443.jpg

capture32134.jpg
 Description   
 Filesize   40.12 KB
 Viewed   1326 Time(s)

capture32134.jpg

Back to top
View user's profile Send private message MSN Messenger 
Geoffrey


Joined: 30 May 2010
Posts: 2377
Location: Queensland

PostPosted: Tue 26 May 2015, 16:21    Post subject:  

stemsee wrote:
In fact I am getting thumbnails in yad and preview.


Yeah, me too now, the thumbnailer was a little slow creating them.

_________________
Carolina: Recent Repository Additions

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

Joined: 12 Oct 2012
Posts: 1600
Location: The other Mr. 305

PostPosted: Fri 05 Jun 2015, 23:57    Post subject:  

Importantly, the above does not work in some older versions of YAD. I think Quirky Unicorn has an old version that would need updating first.
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 2811
Location: South Australia :-(

PostPosted: Sat 06 Jun 2015, 03:16    Post subject:  

Two nice things about YAD, it easy to compile and is a single binary so very easy to update.
_________________
Software <-> Distros <-> Tips <-> Newsletters
Back to top
View user's profile Send private message Visit poster's website 
mikeb


Joined: 23 Nov 2006
Posts: 11266

PostPosted: Sat 06 Jun 2015, 04:44    Post subject:  

I did manage to build YAD for puppy 4.12 and similar but that does not allow the newer features mentioned.... but hardly a reason to not do tarty things with it Smile

And yes...a delight to build... nice coding and easy to hack Smile

mike
Back to top
View user's profile Send private message 
rg66


Joined: 23 Jul 2012
Posts: 1160
Location: Vancouver, BC Canada / Entebbe, Uganda Africa!?!

PostPosted: Sat 06 Jun 2015, 06:55    Post subject:  

slavvo67 wrote:
Importantly, the above does not work in some older versions of YAD. I think Quirky Unicorn has an old version that would need updating first.


Most puppies come with yad-0.12.4, slacko doesn't have it at all. Current is 0.28.1, you can get it here: http://smokey01.com/rg66/X-slacko/pet_packages-X-slacko/yad-0.28.1.pet, should work in any puppy.

_________________
X-slacko-5b1 - X-tahr-2.0 - X-precise-2.4
X-series repo
Back to top
View user's profile Send private message 
slavvo67

Joined: 12 Oct 2012
Posts: 1600
Location: The other Mr. 305

PostPosted: Sat 06 Jun 2015, 12:56    Post subject:  

Thanks RG66. I have a new version but as you pointed out, not all puppies have YAD and some contain older versions.

One small item that is puzzling me is how to display hidden files / directories in YAD. Had anyone solved this one?

Thanks,

Slavvo67
Back to top
View user's profile Send private message 
rg66


Joined: 23 Jul 2012
Posts: 1160
Location: Vancouver, BC Canada / Entebbe, Uganda Africa!?!

PostPosted: Sat 06 Jun 2015, 16:54    Post subject:  

slavvo67 wrote:
One small item that is puzzling me is how to display hidden files / directories in YAD. Had anyone solved this one?

Thanks,

Slavvo67


I did request a "--show-hidden-folders" and he said was going to do it but it never happened. You can do
Code:
 yad --file
right click on the right pane and click "show hidden files".
_________________
X-slacko-5b1 - X-tahr-2.0 - X-precise-2.4
X-series repo
Back to top
View user's profile Send private message 
slavvo67

Joined: 12 Oct 2012
Posts: 1600
Location: The other Mr. 305

PostPosted: Sun 07 Jun 2015, 12:17    Post subject:  

rg66:

Thank you for the right-click tip. I didn't think about something so obvious but sure enough, it works. Not quite the same as programming it in from the beginning but it'll certainly do.

Thanks again,

Slavvo67
Back to top
View user's profile Send private message 
rg66


Joined: 23 Jul 2012
Posts: 1160
Location: Vancouver, BC Canada / Entebbe, Uganda Africa!?!

PostPosted: Sun 07 Jun 2015, 22:40    Post subject:  

I suppose something like this would do:

Code:
yad --file --text="<span color='blue'>To see hidden files, right click and choose 'show hidden files'</span>" --text-align="center" --width="500" --height="400"
Screenshot.jpg
 Description   
 Filesize   46.21 KB
 Viewed   1160 Time(s)

Screenshot.jpg


_________________
X-slacko-5b1 - X-tahr-2.0 - X-precise-2.4
X-series repo
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11266

PostPosted: Mon 08 Jun 2015, 05:00    Post subject:  

Quote:
I suppose something like this would do:

good thinking indeed Smile

the right click hidden files option seems to be standard gtk2 behaviour but not well known about.

mike
Back to top
View user's profile Send private message 
seaside

Joined: 11 Apr 2007
Posts: 926

PostPosted: Mon 08 Jun 2015, 10:53    Post subject: right click hidden files option  

Try this.

Create below file and put at " /root/.config/gtk-2.0/gtkfilechooser.ini"

Code:
# /root/.config/gtk-2.0/gtkfilechooser.ini
[Filechooser Settings]
ShowHidden=true


All gtkfilechooser calls should now show hidden files.

Cheers,
s
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 4 of 42 [630 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, ..., 40, 41, 42 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.1143s ][ Queries: 13 (0.0330s) ][ GZIP on ]