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 16 Jul 2019, 18:31
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 6 of 42 [630 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, ..., 40, 41, 42 Next
Author Message
slavvo67

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

PostPosted: Wed 30 Sep 2015, 21:08    Post subject:  

Hi Bert:

Regarding your post 2 items up, I don't believe those buttons wrap around if you continue adding buttions. I created something similar that went off my screen to the right from having too many buttons. Perhaps there's a fix but for me, a truly annoying fact.

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


Joined: 30 May 2010
Posts: 2377
Location: Queensland

PostPosted: Wed 30 Sep 2015, 23:19    Post subject: Re: "form-field-button"  

Bert wrote:
A quick example of "form-field-buttons"

Code:
#!/bin/sh

yad --form \
       --field="PETS!/root/spot/spot.png!Isn't tha spot? :fbtn" \
       --field="STEP!/root/spot/spot2.png:fbtn" \
       --field="PETS"


Bert,

I compiled yad
Code:
yad --version
0.31.0 (GTK+ 2.24.8)


The script doesn't show any buttons with images, I only get the PETS field.
yad-field.png
 Description   
 Filesize   7.76 KB
 Viewed   1138 Time(s)

yad-field.png


_________________
Carolina: Recent Repository Additions

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


Joined: 30 Jun 2006
Posts: 1106

PostPosted: Thu 01 Oct 2015, 04:26    Post subject:  

slavvo67 wrote:
Hi Bert:

Regarding your post 2 items up, I don't believe those buttons wrap around if you continue adding buttions. I created something similar that went off my screen to the right from having too many buttons. Perhaps there's a fix but for me, a truly annoying fact.

Slavvo67


Hi Slavvo67,

Yes, I think you are right. This is about adding custom button icons and button tooltips to the "traditional" yad window, which normally only has just a couple of buttons.

Perhaps using the "yad-form-field-buttons" would allow what you're looking for? (maybe combined with columns?) Just guessing, I haven't tried it.

_________________


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


Joined: 30 Jun 2006
Posts: 1106

PostPosted: Thu 01 Oct 2015, 04:41    Post subject: Re: "form-field-button"  

Geoffrey wrote:
Bert,

I compiled yad
Code:
yad --version
0.31.0 (GTK+ 2.24.8)


The script doesn't show any buttons with images, I only get the PETS field.


That's strange...you should at least see the top button too, the one labeled "PETS". The second button is based on an image I made, so that's not available to you. But even with this second button you should see its text ("STEP") and the yad icon, which always appears when an icon can not be found.

Maybe the GTK version is important? I have this:
Code:
yad --version
0.31.0 (GTK+ 2.24.10)

_________________


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: Thu 01 Oct 2015, 05:54    Post subject: Re: "form-field-button"  

Bert wrote:
That's strange...you should at least see the top button too, the one labeled "PETS". The second button is based on an image I made, so that's not available to you. But even with this second button you should see its text ("STEP") and the yad icon, which always appears when an icon can not be found.


It doesn't work properly if you copy/paste into the terminal but does if you run it from a script.
Screenshot.jpg
 Description   
 Filesize   12.99 KB
 Viewed   1112 Time(s)

Screenshot.jpg


_________________
X-slacko-5b1 - X-tahr-2.0 - X-precise-2.4
X-series repo

Last edited by rg66 on Thu 01 Oct 2015, 08:48; edited 1 time in total
Back to top
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 2377
Location: Queensland

PostPosted: Thu 01 Oct 2015, 08:19    Post subject: Re: "form-field-button"  

Bert wrote:
Maybe the GTK version is important? I have this:


Na, it's work as rg66 said, needs to be run in a bash script, not in a terminal, I just changed it to icons I have, tooltip works too.
yadthing.png
 Description   
 Filesize   19.3 KB
 Viewed   1110 Time(s)

yadthing.png


_________________
Carolina: Recent Repository Additions

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


Joined: 30 Jun 2006
Posts: 1106

PostPosted: Thu 01 Oct 2015, 10:30    Post subject:  

Great! Glad it's solved. Wink
_________________


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

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

PostPosted: Thu 01 Oct 2015, 22:19    Post subject:  

Has anyone noticed that you can drag your YAD scripts to the desktop and just click on them? Can't do that with a regular shell script. Smile

By the way, latest version is already 31.1

Actively being developed, for sure.
Back to top
View user's profile Send private message 
Bert


Joined: 30 Jun 2006
Posts: 1106

PostPosted: Fri 02 Oct 2015, 04:43    Post subject:  

slavvo67 wrote:
Has anyone noticed that you can drag your YAD scripts to the desktop and just click on them? Can't do that with a regular shell script. Smile


Hi Slavvo67,

Thanks for this tip. I knew this is possible for gtkdialog scripts, but didn't realize yad can do this too

Quote:
By the way, latest version is already 31.1

Actively being developed, for sure.


Yes, nice to see such development.
Version 31.1 is just one bug fix for the new HTML function.
For compiling in this HTML, webkit must be installed.
I briefly looked into this while compiling: according to PPM some 76 MB needed to be downloaded....A bit much for one still unknown yad feature.
And also I don't know if the user also needs to have webkit aboard in order to enjoy the new HTML function.

Have a nice day!

_________________


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


Joined: 30 May 2010
Posts: 2377
Location: Queensland

PostPosted: Fri 02 Oct 2015, 18:34    Post subject:  

I compiled the latest yad-0.31.1 in Carolina with html support, I'm making this post from Yad, seems to work ok.
Code:
yad --html --browser --uri="murga-linux.com/puppy"

I'll update the repo and post in the Carolina thread when I've done so, it will need the webkit (7.5 MB) installed from the repo,
yad-browser.png
 Description   
 Filesize   128.78 KB
 Viewed   1030 Time(s)

yad-browser.png


_________________
Carolina: Recent Repository Additions

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


Joined: 30 Jun 2006
Posts: 1106

PostPosted: Sat 03 Oct 2015, 08:57    Post subject:  

Congrats Geoffrey Cool
Looks like a very worthy addition to yad.

I know this was meant for Carolina, but I couldn't resist trying it in Puppy Precise... no luck:
Code:
yad: error while loading shared libraries: libgstapp-0.10.so.0: cannot open shared object file: No such file or directory


If I could find a working webkit package for Precise, I would compile yad-0.31.1 for Precise.

Thanks.

_________________


Back to top
View user's profile Send private message 
666philb


Joined: 07 Feb 2010
Posts: 3431
Location: wales

PostPosted: Sat 03 Oct 2015, 10:55    Post subject:  

Bert wrote:
Congrats Geoffrey Cool
Looks like a very worthy addition to yad.

I know this was meant for Carolina, but I couldn't resist trying it in Puppy Precise... no luck:
Code:
yad: error while loading shared libraries: libgstapp-0.10.so.0: cannot open shared object file: No such file or directory


If I could find a working webkit package for Precise, I would compile yad-0.31.1 for Precise.

Thanks.


hi bert ,
libgstapp-0.10.so.0 is in libgstreamer-plugins-base0.10 from the PPM
webkit is also in precises PPM ... tick the .dev box as you'll probably need libwebkitgtk-dev for compiling

_________________
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331
Back to top
View user's profile Send private message 
Bert


Joined: 30 Jun 2006
Posts: 1106

PostPosted: Sat 03 Oct 2015, 14:29    Post subject:  

Thanks for trying to help me 666philb.

I tried, but compiling webkit is not for daydreamers like me. Wink

_________________


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


Joined: 30 Jun 2006
Posts: 1106

PostPosted: Sun 04 Oct 2015, 09:42    Post subject:  

Icon-only button:

Code:
#!/bin/sh

yad --button="""!/root/spot/spot.png!Hey Spot..."

Again doesn't seem to work from terminal. Okay as a script.
capture32115.png
 Description   
 Filesize   7.83 KB
 Viewed   930 Time(s)

capture32115.png


_________________


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


Joined: 05 Sep 2006
Posts: 12627
Location: Stratford, Ontario

PostPosted: Sun 04 Oct 2015, 10:55    Post subject:  

Bert wrote:
Icon-only button:

Code:
#!/bin/sh

yad --button="""!/root/spot/spot.png!Hey Spot..."

Again doesn't seem to work from terminal. Okay as a script.


I have found that commands with exclamation marks don't work in the terminal.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 6 of 42 [630 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, ..., 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.0736s ][ Queries: 12 (0.0197s) ][ GZIP on ]