Page 1 of 1

Gtkdialog Tutorial Manual

Posted: 16 Oct 2013, 22:36
by don570
I wrote a manual to introduce Bash programmers to the power
of Gtkdialog GUI scripting. It's available for download.
(untick the box to avoid installing the downloader)

http://www.datafilehost.com/d/6c860d52

EDIT: new version 2.4
___________________________________________________

For examples of apps that can be developed using Gtkdialog
http://www.murga-linux.com/puppy/viewtopic.php?t=69282

Example: pburn by Zigbert has been converted to Porteus

Re: Gtkdialog Tutorial Manual

Posted: 18 Oct 2013, 22:06
by mocabilly
Hi don570,

Thnx for the great tutorial.

Kind regards,

Mocabilly

Re: Gtkdialog Tutorial Manual

Posted: 19 Oct 2013, 00:13
by brokenman
Great work. This is a great asset to gtkdialog. I hope people start writing stuff and unleashing the full power of gtkdialog.

Re: Gtkdialog Tutorial Manual

Posted: 19 Oct 2013, 20:38
by don570
Improved and updated to version 2.0

Re: Gtkdialog Tutorial Manual

Posted: 31 Oct 2013, 23:17
by don570
New version 2.1 available in first post.

Re: Gtkdialog Tutorial Manual

Posted: 09 Nov 2013, 20:52
by don570
new version 2.2 available in first post

Re: Gtkdialog Tutorial Manual

Posted: 03 Dec 2013, 21:16
by don570
I've now reached version 2.4 of the manual.
See first post.

Re: Gtkdialog Tutorial Manual

Posted: 09 Dec 2016, 01:41
by francois
gtkdialog:
http://www.tecmint.com/gtkdialog-create ... log-boxes/

Gtkdialog (or gtkdialog) is an open source nifty utility for creating and building GTK+ Interfaces and Dialog Boxes with the help of Linux shell scripts and using GTK library, as well as using an xml-like syntax, which makes easy to create interfaces using gtkdialog. It is much similar to most famous tool called Zenity, but it comes with some useful customizable features that enables you to easily create many widgets like vbox, hbox, button, frame, text, menu, and a lot more. ... and more.

Thanks Don. :)

Re: Gtkdialog Tutorial Manual

Posted: 09 Dec 2016, 12:46
by Bogomips
francois wrote:Thanks Don. :)
A bit belated :twisted: (beat you to it Ed 8) )

Re: Gtkdialog Tutorial Manual

Posted: 09 Dec 2016, 22:19
by francois
Don't laugh about old men. :(

Re: Gtkdialog Tutorial Manual

Posted: 10 Dec 2016, 21:02
by Ed_P
Yeah.

Kids today. :(

Re: Gtkdialog Tutorial Manual

Posted: 13 Dec 2016, 19:01
by Blaze
Hello, everybody!

I Am trying to writing on gtkdialog simple application for automatically authorization on the government site.
This program after clicking on the user button is automatically opening web site http://government-site.org via Mozilla Firefox browser and automatically inserts login and password of chosen user.

I have the same application by me on AutoIt for Window$
AutoIt v3 is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting.
But I don't have idea how to add two actions (for four buttons):

1) for automatic insertion of user (visible_user_field) and password (visible_password_field) to the two fields of this html page

Code: Select all

<input id="visible_user_field" style="width: 100%" name="userName" tabindex="1" autocomplete="off" type="text">
<input id="visible_password_field" style="width: 100%" name="password" tabindex="2" autocomplete="off" type="password"> 
2) plus automatic pressing 'Enter' button of keyboard after 1st action or automatic pressing the button "Вход в систему"[/color]

Code: Select all

<input name="loginButton" id="loginButton" value="Вход в систему" onclick="OnClick()" type="button"> 
Вход в систему it's Sign in
Пользователь it's User
Пароль it's Password
source of gtkdialog (example)

Code: Select all

#!/bin/bash 
GTKDIALOG=gtkdialog 
export MAIN_DIALOG=' 
<window title="Title of app" icon-name="gtk-about" resizable="true" width-request="350" height-request="170"> 

<vbox> 

<button>
<label>User 1</label>
<action>exec firefox http://government-site.org</action>
</button>

<button>
<label>User 2</label>
<action>exec firefox http://government-site.org</action>
</button>

<button>
<label>User 3</label>
<action>exec firefox http://government-site.org</action>
</button>

<button>
<label>User 4</label>
<action>exec firefox http://government-site.org</action>
</button>

<button>
<label>Exit</label>
<action type="exit">Cancel</action>
</button>

</vbox>

</window>
'
case $1 in
-d | --dump) echo "$MAIN_DIALOG" ;;
*) $GTKDIALOG --program=MAIN_DIALOG --center ;;
esac
source of html - download

Code: Select all

                    <tr>
                        <td class="bold">
                            <label for="visible_user_field">
                                Пользователь:
                            </label>
                        </td>
                        <td style="text-align: right;">
                            <input id="visible_user_field" style="width: 100%" name="userName" tabindex="1" autocomplete="off" type="text">
                        </td>
                    </tr>
                    <tr>
                        <td class="bold">
                            <label for="visible_password_field">
                                Пароль:
                            </label>
                        </td>
                        <td style="text-align: right;">
                            <input id="visible_password_field" style="width: 100%" name="password" tabindex="2" autocomplete="off" type="password">
                        </td>
                    </tr> 

Re: Gtkdialog Tutorial Manual

Posted: 25 Mar 2017, 19:22
by Blaze
Any suggestions are welcome.