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 Sun 19 Nov 2017, 01:10
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 17 of 22 [321 Posts]   Goto page: Previous 1, 2, 3, ..., 15, 16, 17, 18, 19, 20, 21, 22 Next
Author Message
B.K. Johnson

Joined: 12 Oct 2009
Posts: 639

PostPosted: Sat 27 Aug 2016, 01:38    Post subject:  

@slavvo67
I saw the v0.36.2 pet mentioned in a thread with a link to it at Smokey's.

I have reverted to 0.12.4 so I can get some work done, but I will most certainly test your compile in tahr-6.0.5.

_________________
B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM

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

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

PostPosted: Sat 27 Aug 2016, 01:44    Post subject:  

Ok. Just let me know if you're 32 bit or 64 bit so I can make one... I can't sleep, anyway so if you let me know and give me about an hour......

Hey, I didn't see the DEVX files for the Tahr 6.0.5 versions so I asked Phil to post them. I make one for each just so we have... (Found the DEVX files)

BTW - YAD had a significant update somewhere around version 25. One of the commands in there will really screw up in an older YAD. I don't recall which one, exactly but it'll come to me....
Back to top
View user's profile Send private message 
slavvo67

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

PostPosted: Sat 27 Aug 2016, 03:38    Post subject:  

Well, we might as well go bleeding edge. Both were compiled and tested in their respective versions of Tahr 6.0.5. I'm not sure if the PAE version will work in the non-PAE. Don't have a separate DEVX for that one so maybe some testing ???

YAD 37.0 for Tahr PAE 32 bit
https://drive.google.com/file/d/0B672gIlbo7iVcHhXbTk1MEhwYW8/view?usp=sharing

MD5: 098786907641d4c054acec99bf4a9a4a
SHA1: 91b7c027b27880c7fd3841c524d34417f0aa4473

SHA256: 5ea60ee07d43ba6d37ceaa4214424f67024fab14054d187d1b4ec218847238af

YAD 37.0 for Tahr64
https://drive.google.com/file/d/0B672gIlbo7iVblZUN0o4NlRoOEk/view?usp=sharing

MD5: d9a144e4d6212ae850b08c09dadd2665
SHA1: a246c8b13a26d9063b85b7c8a3a70adb885b01d5
SHA256:
acf4ed42ad33c71a2615d04a658f443ce4716cbee556146849c2b70d062a3953
Back to top
View user's profile Send private message 
B.K. Johnson

Joined: 12 Oct 2009
Posts: 639

PostPosted: Sat 27 Aug 2016, 09:35    Post subject:  

@slavvo67
YAD 37.0 for Tahr PAE 32 bit downloaded. MD5 OK. Problem persists.

I think it is a problem with the flash drive.

Thanks for your intervention, although no success ...for now Sad .

_________________
B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM

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

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

PostPosted: Sat 27 Aug 2016, 11:27    Post subject:  

Well, I tried. Interesting is that I get an error when trying to install the YAD37 64bit into Quirky Xerus. When I unpackage the .pet and drag the YAD program to /usr/bin, it works like a charm.

I'll need to look at that closer. For convenience, I use Pet Maker Plus to make the pets. I wonder if there's a glitch there, somewhere. Anyway, it works in the distro in which it was compiled, Tahr64.

If I can suggest using one of Barry's Quirky distro's if you're going the USB route. I think the Woof-CE distros are still primarily focused on cd / dvd burn. To me, Quirky provides a true USB environment. That's to take nothing away from Tahr, which is a real good distro!

Best,

Slavvo67
Back to top
View user's profile Send private message 
B.K. Johnson

Joined: 12 Oct 2009
Posts: 639

PostPosted: Mon 29 Aug 2016, 17:28    Post subject:  

@slavvo67
Quote:
If I can suggest using one of Barry's Quirky distro's if you're going the USB route. I think the Woof-CE distros are still primarily focused on cd / dvd burn. To me, Quirky provides a true USB environment. That's to take nothing away from Tahr, which is a real good distro!
The only Quirky I ever used was 4.3.1. Barry says Quirkies are not puppies and I don't do quirkies. Quirky is Barry's toy, his lab for trying out ideas. I expected that after he had pursued an idea and was satisfied that it had merit, we would see him create a legitimate puppy from time to time that incorporated those ideas. That's not the way it seems to be going. If a dev likes something in a quirky offering and uses it in true pup, that's another matter.
_________________
B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM

Back to top
View user's profile Send private message 
B.K. Johnson

Joined: 12 Oct 2009
Posts: 639

PostPosted: Fri 02 Sep 2016, 23:19    Post subject:  

Found in the yad mailing list.
yad 0.33.0 and 0.33.1 do not show text with --timeout option
Quote:
I have a user on on Fedora 23 with the following issue

yad --title='Title' --button 'Button:0' --text='Hello' --width=150 --height=80

shows the text "Hello", but

yad --title='Title' --button 'Button:0' --text='Hello' --width=150 --height=80 --timeout=5

does not show the text.

For the user it was working on yad-0.32.0-1.fc23.x86_64

Thanks
Oliver

The solution from Victor Ananjevsky (yad creator)
Quote:

delete yad config file ($XDG_CONFIG_HOME/yad.conf)

What path is $XDG_CONFIG_HOME?
A search for yad.conf found 1 at /root/.config/

[EDIT]
With the deletion of /root/.config/yad.conf, timeout now works in these tested versions: 0.12.4, 0.36.2 and 0.37.
ISSUE FIRST RAISED HERE IS NOW SOLVED.

_________________
B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM


Last edited by B.K. Johnson on Sun 04 Sep 2016, 10:50; edited 2 times in total
Back to top
View user's profile Send private message 
Semme


Joined: 07 Aug 2011
Posts: 7775
Location: World_Hub

PostPosted: Sat 03 Sep 2016, 10:21    Post subject:  

Idea Load "env" into a shell. You'll then learn the path for >> $XDG_CONFIG_HOME
Back to top
View user's profile Send private message 
B.K. Johnson

Joined: 12 Oct 2009
Posts: 639

PostPosted: Sat 03 Sep 2016, 21:01    Post subject:  

Thanks Semme.
_________________
B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM

Back to top
View user's profile Send private message 
B.K. Johnson

Joined: 12 Oct 2009
Posts: 639

PostPosted: Tue 06 Sep 2016, 15:40    Post subject:  

I AM A NON-PROGRAMMER!
I am writing in bash and gtkdialog.
For debugging purposes, I wrote something like:

Code:
case $DIRECTION in
south) echo "Travelling south"
exit;;
north) echo "Travelling north"
exit;;
esac

That worked in the script, but wanting to use yad, the prog being gui based, I tried replacing echo as below

Code:
case $DIRECTION in
south)
yad --title "Direction" --text="You are going South" --timeout=5
yad --title "Direction" --text="If that's not the direction you wish, then turn back"
exit;;
north)
yad --title "Direction" --text="You are going North" --timeout=5
yad --title "Direction" --text="If that's not the direction you wish, then turn back"
exit;;
esac

I encountered the usual incomprehensible error message about syntax error near a token in line x.

Putzing around with the code, I eventually got this to work:

Code:
case $DIRECTION in
south)
yad --title "Direction" --text="You are going South" --timeout=5;
yad --title "Direction" --text="If that's not the direction you wish, then turn back";
exit;;
north)
yad --title "Direction" --text="You are going North" --timeout=5;
yad --title "Direction" --text="If that's not the direction you wish, then turn back";
exit;
esac   


but I don't know why. Or if there's a better way? Would braces work and be preferable? Does a single semicolon end a statement? Does a double semicolon end a case segment? Obviously, new line does not signify execution. Is this a bashism or gtkdialog issue?

Comments and help solicited. Thanks.

_________________
B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM

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


Joined: 26 Jan 2011
Posts: 1390
Location: Japan

PostPosted: Tue 06 Sep 2016, 21:40    Post subject:  

B.K. Johnson wrote:
That worked in the script, but wanting to use yad, the prog being gui based, I tried replacing echo as below
Code:
case $DIRECTION in
south)
yad --title "Direction" --text="You are going South" --timeout=5
yad --title "Direction" --text="If that's not the direction you wish, then turn back"
exit;;
north)
yad --title "Direction" --text="You are going North" --timeout=5
yad --title "Direction" --text="If that's not the direction you wish, then turn back"
exit;;
esac

I encountered the usual incomprehensible error message about syntax error near a token in line x.
I don't. Syntax is correct and code works fine.
Back to top
View user's profile Send private message 
B.K. Johnson

Joined: 12 Oct 2009
Posts: 639

PostPosted: Wed 07 Sep 2016, 12:18    Post subject:  

Thanks MochiMoppel
What you did was insert/add the missing semicolon near the end of my script.

Follow-up Q:
What if I wanted to add a 'catch all' in the case statement; what would I add/change? Thanks in advance.

_________________
B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM

Back to top
View user's profile Send private message 
6502coder


Joined: 23 Mar 2009
Posts: 405
Location: Western United States

PostPosted: Wed 07 Sep 2016, 17:58    Post subject:  

Add a case named "*" to implement a catch-all.
It has to be the last case, and like all other cases, it is terminated with ";;"

E.g.

Code:
case $DIRECTION in
south)
yad --title "Direction" --text="You are going South" --timeout=5
yad --title "Direction" --text="If that's not the direction you wish, then turn back"
exit;;
north)
yad --title "Direction" --text="You are going North" --timeout=5
yad --title "Direction" --text="If that's not the direction you wish, then turn back"
exit;;
*)
   Stuff to do in all other cases...
;;
esac
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1390
Location: Japan

PostPosted: Wed 07 Sep 2016, 20:04    Post subject:  

B.K. Johnson wrote:
Thanks MochiMoppel
What you did was insert/add the missing semicolon near the end of my script.
I didn't insert/add anything. I quoted your code.
Back to top
View user's profile Send private message 
B.K. Johnson

Joined: 12 Oct 2009
Posts: 639

PostPosted: Wed 07 Sep 2016, 20:28    Post subject:  

@6502coder
Thanks

@MochiMoppel
You are correct, of course Laughing . My mistake; blame it on the eyes, not the brain Embarassed .

Both of you guys are a great help. Much appreciated.

_________________
B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM

Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 17 of 22 [321 Posts]   Goto page: Previous 1, 2, 3, ..., 15, 16, 17, 18, 19, 20, 21, 22 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.0720s ][ Queries: 14 (0.0177s) ][ GZIP on ]