/usr/share/doc/gtkdialog/examples/notebook/notebook_advanced
I uncomment the dump line and I know some trick, there is in the inputfile:
0 --> tab0
1 --> tab1
...
here is my code:
Code: Select all
#!/bin/bash
cek(){
if [[ $E = "" ]]; then
#echo kosong
echo 0 > inputfile
else
#echo ada
echo 1 > inputfile
fi
}
export -f cek
Width=`xwininfo -root | grep Width | awk '{ print $2 }'`
Height=`xwininfo -root | grep Height | awk '{ print $2 }'`
export aku='
<window title="nbkNotebook" width-request="'$Width'" height-request="'$Height'">
<vbox>
<entry>
<variable>E</variable>
<action>cek</action>
<action>refresh:nbk0</action>
</entry>
<notebook show-tabs="false" show-border="false">
<vbox border-width="20">
<text label="this is the main start metro"></text>
</vbox>
<vbox border-width="20">
<text label="and this is the search window"></text>
</vbox>
<variable>nbk0</variable>
<input file>inputfile</input>
</notebook>
</vbox>
</window>'
gtkdialog --program=aku
Nice gtkdialog
I Like it