Code: Select all
yad --version
0.38.1 (GTK+ 2.24.30)
Or you could click on the dark section to the right of the entry.
The path of the new directory is returned in both cases.
Cheers,
s
(Not exactly my idea of intuitive )
Code: Select all
yad --version
0.38.1 (GTK+ 2.24.30)
Usinggyro wrote:It all seems to work fine except when I use the "Create Folder" button. After typing in the name of the new folder I hit the "Enter" key, and nothing happens.
Code: Select all
yad --version
0.36.3 (GTK+ 2.24.30)
I'm most likely getting it wrong on what you want to do.gyro wrote:@Geoffrey and seaside,Usinggyro wrote:It all seems to work fine except when I use the "Create Folder" button. After typing in the name of the new folder I hit the "Enter" key, and nothing happens.The "Enter" key does what I expect. It causes the new directory to be accepted and it gets opened.Code: Select all
yad --version 0.36.3 (GTK+ 2.24.30)
So the remaining question is, do any of the versions between 0.36.3 and 0.38.1 function "correctly"?
gyro
Code: Select all
INIT_DIR="$(pwd)"
RET_DIR=$(yad --center --borders=6 --title "dircrypt - Select encrypted directory" \
--file --directory --width=600 --height=400 --filename="$INIT_DIR/")
echo $RET_DIR
Unfortunately, sort of yes.Geoffrey wrote:I'm most likely getting it wrong on what you want to do.
Yes, https://groups.google.com/forum/#!forum/yad-commongyro wrote:So the YAD tip is: avoid version 0.38.1
YAD 0.38.2 released
This is a bugfix release. One serious bug was fixed, update is highly recommended
Changes in this release:
- fix enter behavior
Thanks for this example, I find such a column of buttons quite useful as a kind of menu with each button executing a corresponding script.Geoffrey wrote:Buttons in --form --field are the width of the windowCode: Select all
yad --form --field="test1:FBTN" "yad --text='test1'" \ --field="test2:FBTN" "yad --text='test2'" \ --field="test3:FBTN" "yad --text='test3'"
Code: Select all
#!/bin/bash
function CLOSE_EXIT()
{
echo "Close and exit..."
kill -s SIGUSR1 $YAD_PID
} ; export -f CLOSE_EXIT
yad --text "<b>Simple Dialog</b>" --button="OK:bash -c CLOSE_EXIT"
Code: Select all
yad --form --field="test1:FBTN" "yad --text='test1'" \
--field="test2:FBTN" "yad --text='test2'" \
--field="test3:FBTN" "yad --text='test3'"
yad --text='test1' is the sample function of yad --form --field="test1:FBTN", it displays a yad window with the text "test1" for the buttons field that's all, it can be any function you likeslavvo67 wrote:Works in terminal but not as a script written via Geany and saved as an executable file. Anyone? Very strange to me...
More strange, it works now but this way:
yad --form --field="test1:FBTN" "yad --text='test1'" --field="test2:FBTN" "yad --text='test2'" --field="test3:FBTN" "yad --text='test3'"
Why does yad have to be typed over and over? I don't get it...
For some strange reason, when it's all one line; it works. When lines are separated with the \ and continued on the next line.... she doesn't work for me....
Code: Select all
#! /bin/bash
yad --form --field="test1:FBTN" "yad --text='test1'" \
--field="test2:FBTN" "yad --text='test2'" \
--field="test3:FBTN" "yad --text='test3'"
Which "ok box"? You should place the "next part" before the yad statement as a function:slavvo67 wrote:Is there any way to pass the drag and drop to the next part of the script without requiring the ok box to be clicked?
Code: Select all
function myfunction {
Xdialog --msgbox "You dropped\n$0" x
}
export -f myfunction
yad --width=200 --height=200 --dnd --command="bash -c 'myfunction'"