Comments (7)
Hi
perhaps add decorated="false|true"
<input>640x480:false|true</input>
http://developer.gnome.org/gtk/2.24/GtkWindow.html#gtk-window-set-decorated
in order to make full screen ...
Original comment by [email protected]
on 25 Aug 2011 at 10:22
from gtkdialog.
just an idea ...
perhaps add some widget can change their size with action
<input size>64x64</input>
Original comment by [email protected]
on 27 Aug 2011 at 2:09
from gtkdialog.
Hi,
in fact it may well do that with xdotool
example:
#!/bin/bash
GTKDIALOG=gtkdialog3
#http://www.semicomplete.com/projects/xdotool/
echo 0 >/tmp/windowsize-inputfile
function FCT_windowsize()
{
WID="$(xdotool search "^Test_windowsize$" | head -1)"
xdotool windowactivate --sync $WID
xdotool windowsize $WID $1 $2
}
export -f FCT_windowsize
export MAIN_DIALOG='<window height_request="1" width_request="1"
border-width="0" spacing="0" window_position="0" title="Test_windowsize">
<vbox>
<notebook show_tabs="false" show-border="false" page="0" labels="0|1">
<vbox>
<text use-markup="true" selectable="true">
<label>"Gtkdialog (or gtkdialog) is a small utility for fast and easy GUI
building. It can be used to create dialog boxes for almost any interpreted and
compiled programs which is a very attractive feature since the developer does
not have to learn various GUI languages for the miscellaneous programming
languages., which is cool."</label>
</text>
<hbox>
<button>
<variable>activ_tab_1</variable>
<label>tab1</label>
<input file stock="gtk-jump-to"></input>
<action>echo 1 >/tmp/windowsize-inputfile</action>
<action>bash -c "FCT_windowsize 130 130"</action>
<action>refresh:tab</action>
</button>
</hbox>
</vbox>
<vbox>
<checkbox>
<label>checkbox 1</label>
</checkbox>
<checkbox>
<label>checkbox 2</label>
</checkbox>
<checkbox>
<label>checkbox 3</label>
</checkbox>
<hbox>
<button>
<variable>activ_tab_0</variable>
<label>tab0</label>
<input file stock="gtk-jump-to"></input>
<action>echo 0 >/tmp/windowsize-inputfile</action>
<action>bash -c "FCT_windowsize 600 400"</action>
<action>refresh:tab</action>
</button>
</hbox>
</vbox>
<variable>tab</variable>
<input file>/tmp/windowsize-inputfile</input>
</notebook>
<hbox>
<button>
<variable>quit</variable>
<label>Quit</label>
<input file stock="gtk-quit"></input>
<action>exit:tab</action>
</button>
</hbox>
</vbox>
<action signal="show">bash -c "FCT_windowsize 600 400"</action>
</window>'
$GTKDIALOG --program=MAIN_DIALOG
exit 0
Original comment by [email protected]
on 15 Sep 2011 at 12:36
from gtkdialog.
Hummm
I just try again with wmctrl
it is much faster than xdotool
Replace:
WID="$(xdotool search "^Test_windowsize$" | head -1)"
by:
WID="$(wmctrl -l | grep " Test_windowsize$" | awk '{print $1}')"
Original comment by [email protected]
on 16 Sep 2011 at 8:58
from gtkdialog.
I enjoy all thanks to your new job:)
Another example to resize a window ...
it is installed and wmctrl xdotool
#! /bin/bash
chemin="$(cd "$(dirname "$0")";pwd)/$(basename "$0")";
dossier="$(dirname "$chemin")"
export chemin dossier
cd "${dossier}"
GTKDIALOG=gtkdialog3
#Default tree
echo "gtk-go-forward|Unfold the window" >/tmp/inputfile-tree
#Default tab
echo "0" >/tmp/windowsize-inputfile
function FCT_windowsize()
{
WID="$(wmctrl -l | grep " Test_windowsize$" | awk '{print $1}')"
xdotool windowactivate --sync $WID
xdotool windowsize $WID $1 $2
echo "$3" >/tmp/windowsize-inputfile
if [ "$4" = "1" ]; then
echo "gtk-go-down|back window" >/tmp/inputfile-tree
echo "Debug: $1 $2 $3 $4 $(cat /tmp/inputfile-tree)"
elif [ "$4" = "2" ]; then
echo "gtk-go-forward|Unfold the window" >/tmp/inputfile-tree
echo "Debug: $1 $2 $3 $4 $(cat /tmp/inputfile-tree)"
fi
}
export -f FCT_windowsize
function FCT_create_tree()
{
echo -e '<hbox>
<text width_request="420" use-underline="true">
<label>_</label>
</text>
<tree exported-column="0" headers_visible="false" space-expand="false">
<variable>tree</variable>
<height>24</height>
<input file stock-column="0">/tmp/inputfile-tree</input>
<action signal="button-press-event">bash -c "FCT_windowsize '$1' '$2' '$3'
'$4'"</action>
<action signal="button-press-event">refresh:tab</action>
<action signal="button-press-event">refresh:tree</action>
</tree>
</hbox>'
}
export MAIN_DIALOG='<window width_request="600" height_request="90"
window_position="0" title="Test_windowsize">
<vbox>
<notebook show_tabs="false" show-border="false" page="0" labels="0|1">
<vbox>
<text use-markup="true" selectable="true">
<label>"Gtkdialog, which is cool."</label>
</text>
'"$(FCT_create_tree 600 220 1 1)"'
<hbox>
<button>
<variable>quit</variable>
<label>Quit</label>
<input file stock="gtk-quit"></input>
<action>exit:tab</action>
</button>
</hbox>
</vbox>
<vbox>
<text use-markup="true" selectable="true">
<label>"Gtkdialog, which is cool."</label>
</text>
'"$(FCT_create_tree 600 90 0 2)"'
<text use-markup="true" selectable="true">
<label>"Gtkdialog (or gtkdialog) is a small utility for fast and easy GUI
building. It can be used to create dialog boxes for almost any interpreted and
compiled programs which is a very attractive feature since the developer does
not have to learn various GUI languages for the miscellaneous programming
languages., which is cool."</label>
</text>
<hbox>
<button>
<variable>quit</variable>
<label>Quit</label>
<input file stock="gtk-quit"></input>
<action>exit:tab</action>
</button>
</hbox>
</vbox>
<variable>tab</variable>
<input file>/tmp/windowsize-inputfile</input>
</notebook>
</vbox>
</window>'
$GTKDIALOG --program=MAIN_DIALOG
exit 0
Original comment by [email protected]
on 25 Sep 2011 at 11:02
from gtkdialog.
I'm currently working on the window widget now.
There is one piece of data that the window deals with and that is the "title",
therefore I am going to support <input>, <input file>, clear, refresh and save
for the title.
Original comment by [email protected]
on 3 Aug 2012 at 2:04
from gtkdialog.
<input>, <input file>, refresh, save and clear for "title" are done in r330
It would be possible to create a "resize" action function in the future so I'll
add that to issue 44
Original comment by [email protected]
on 4 Aug 2012 at 5:10
- Changed state: Fixed
from gtkdialog.
Related Issues (20)
- Initially hidden widgets can leave artifacts depending on widget HOT 1
- Connect-up button-press and button-release to the comboboxentry entry child widget HOT 1
- Save tree widget data complete rather than just the exported column HOT 2
- Save selection on TREE widget HOT 4
- Progress bar pulse function HOT 2
- Tree selected-row(s) tag HOT 1
- Using arbitrary images on trees
- Change variable from shell
- String length of input file in tree widget
- stock icons with ltr and rtl versions do not work correctly in the window tag
- treeview should not temper data when saving
- variable in edit display HOT 2
- threading
- splitter like feature
- Option to set the GTK floating hint on dialog HOT 1
- Clearify the meaning of function in widget reference
- Attempt to unlock mutex that was not locked HOT 6
- Installing gtkdialog on Solaris 10
- Can this project be compiled with gtk3?
- How can I purge a broken install from Ubuntu 14.04 64bit
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gtkdialog.