combine --notebook and --paned or another way to have tabs with --listen and related buttons

452 views
Skip to first unread message

ladiko

unread,
Dec 1, 2015, 7:30:23 AM12/1/15
to yad-common
I have a Window with f.e. 3 tabs. 2 of them show the end of logfiles and the third tab has several buttons, which result in events showing up in the logfiles:

tail -n 100 -f /var/log/syslog | yad --plug 12345 --tabnum 1 --text-info --listen --tail &
tail
-n 100 -f /var/log/kern.log | yad --plug 12345 --tabnum 2 --text-info --listen --tail &
yad
--plug 12345 --tabnum 3 --form --field "test1":fbtn "logger first test" --field "test2":fbtn "echo 'second test' | sudo tee /dev/kmsg"
yad --notebook --key 12345 --tab syslog --tab kern.log --tab buttons --button gtk-close


I would like to have these buttons placed on the on the related tab with the logfile . How to do that? I thought about using --paned, but it seems like it cant be combinated with --notepad.

Victor Ananjevsky

unread,
Dec 6, 2015, 9:24:22 AM12/6/15
to yad-c...@googlegroups.com
sorry, you can't do that. but instead you can place the buttons in the dialog's button bar with appropriate --button arguments.

tail -n 100 -f /var/log/syslog | yad --plug 12345 --tabnum 1 --text-info --listen --tail &
tail -n 100 -f /var/log/kern.log | yad --plug 12345 --tabnum 2 --text-info --listen --tail &
yad --notebook --key 12345 --tab syslog --tab kern.log --tab buttons --button gtk-close \
--button "test1:logger first test" --button "test2:echo 'second test' | sudo tee /dev/kmsg"
> --
> 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>

ladiko

unread,
Dec 6, 2015, 11:02:01 AM12/6/15
to yad-common
But i would like to have different buttons with different actions on each tab.

ladiko

unread,
Dec 6, 2015, 11:02:02 AM12/6/15
to yad-common
Reply all
Reply to author
Forward
0 new messages