Input and output

102 views
Skip to first unread message

VendForce Security

unread,
Nov 15, 2015, 4:40:32 PM11/15/15
to yad-common
yad \
--width=400 \
--no-buttons \
--center \
--form \
--seperator="|" \
--title="Search" \
--field="   City":CB 'London!Paris' \
--field="   Search":CB '' 'Country!Place \
--field="   Upload":MFL \
--field="!/root/search.png":FBTN


I want to hide buttons and just have all output shown when FBTN is pressed

can anyone help ?


Victor Ananjevsky

unread,
Nov 16, 2015, 2:22:31 AM11/16/15
to yad-c...@googlegroups.com

yad \
--width=400 \
--no-buttons \
--center \
--form \
--seperator="|" \
--title="Search" \
--field=" City":CB 'London!Paris' \
--field=" Search":CB 'Country!Place' \
--field=" Upload":MFL '' \
--field="!/root/search.png":FBTN 'echo "%1|%2|%3"'
> --
> You received this message because you are subscribed to the Google Groups "yad-common" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to yad-common+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.


--
Victor Ananjevsky <anan...@gmail.com>

VendForce Security

unread,
Nov 16, 2015, 7:07:55 AM11/16/15
to yad-common

Thank you that worked perfect thanks you for the solution, Ive one more problem

If I use the --center flag when I click the COUNTRYS field theres a lot of blank spaces I tried to use sed ro remove them but the issue is when yad dialog is centered Pictures are above to explain

COUNTRYS="Countryname!Afghanistan!Albania!WW!SS!SS!DD!FF!DDD!SDDDD!SDSDDCD!SDDD!WWW!WWWWWWWWWWWWWWWWWWWW!eeeeeeeeeeeeeeee!FFF!DDDD!SSSSS!SSS!XXX!DDDD!SSS!AAA!FFF!GGGG!HHHH"
EMPTYSPACE=$(echo $COUNTRYS | sed '/^\s*$/d')

yad \
--width=400 \
--no-buttons \
--center \
--form \
--seperator="|" \
--field="   COUNTYRS":CB "$COUNTRYS"
#--field="   COUNTYRS":CB 'Countryname!Afghanistan!Albania!WW!SS!SS!DD!FF!DDD!SDDDD!SDSDDCD!SDDD!WWW!WWWWWWWWWWWWWWWWWWWW!eeeeeeeeeeeeeeee!FFF!DDDD!SSSSS!SSS!XXX!DDDD!SSS!AAA!FFF!GGGG!HHHH'


Victor Ananjevsky

unread,
Nov 16, 2015, 7:49:07 AM11/16/15
to yad-c...@googlegroups.com
sorry, but this is a stupid gtk behavior, and i can do nothing with that
description in gtk bugzilla - https://bugzilla.gnome.org/show_bug.cgi?id=129463

the only hack to change this is an apply "appears-as-list" style
property to widgets named "yad-entry-combo" and "yad-entry-edit-combo"

for gtk2 builds this can be made through --gtkrc option
just create file with following content

style "yad-combo"
{
GtkComboBox::appears-as-list = 1
}
widget "yad-entry-combo" style "yad-cobmo"
widget "yad-entry-edit-combo" style "yad-combo"

and pass its name as --gtkrc argument

for gtk3 this can be set in user's gtk.css (see ${XDG_CONFIG_HOME}/gtk-3.0/gtk.css)

В Mon, 16 Nov 2015 04:07:55 -0800 (PST)
VendForce Security <vend...@gmail.com> писал:

>
>
> <https://lh3.googleusercontent.com/-YIqjpBh3PuU/VknG7qc63BI/AAAAAAAAAA0/9wQnM2IcvTI/s1600/Screenshot%2Bfrom%2B2015-11-16%2B12-01-53.png>
>
> <https://lh3.googleusercontent.com/-d__Xq8M4TFc/VknG4IPO0PI/AAAAAAAAAAs/pGXcr87h_ms/s1600/Screenshot%2Bfrom%2B2015-11-16%2B12-01-33.png>
Reply all
Reply to author
Forward
0 new messages