Gtkdialog Tutorial Manual

New features which should be implemented in Porteus; suggestions are welcome. All questions or problems with testing releases (alpha, beta, or rc) should go in their relevant thread here, rather than the Bug Reports section.

Gtkdialog Tutorial Manual

Postby don570 » 16 Oct 2013, 23:36

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
Last edited by don570 on 03 Dec 2013, 22:18, edited 4 times in total.
don570
Contributor
Contributor
 
Posts: 99
Joined: 01 Jun 2012, 01:37
Location: Ontario

Re: Gtkdialog Tutorial Manual

Postby mocabilly » 18 Oct 2013, 23:06

Hi don570,

Thnx for the great tutorial.

Kind regards,

Mocabilly
There are only 10 kind of people in this world, those who can read binary and those who can't.
User avatar
mocabilly
White ninja
White ninja
 
Posts: 21
Joined: 12 Jan 2011, 18:53
Location: Belgium
Distribution: Mint-Porteus

Re: Gtkdialog Tutorial Manual

Postby brokenman » 19 Oct 2013, 01:13

Great work. This is a great asset to gtkdialog. I hope people start writing stuff and unleashing the full power of gtkdialog.
How do i become super user?
Wear your underpants on the outside and put on a cape.
brokenman
Site Admin
Site Admin
 
Posts: 5362
Joined: 27 Dec 2010, 04:50
Location: Brazil
Distribution: Porteus v3.2rcX all desktops

Re: Gtkdialog Tutorial Manual

Postby don570 » 19 Oct 2013, 21:38

Improved and updated to version 2.0
don570
Contributor
Contributor
 
Posts: 99
Joined: 01 Jun 2012, 01:37
Location: Ontario

Re: Gtkdialog Tutorial Manual

Postby don570 » 01 Nov 2013, 00:17

New version 2.1 available in first post.
don570
Contributor
Contributor
 
Posts: 99
Joined: 01 Jun 2012, 01:37
Location: Ontario

Re: Gtkdialog Tutorial Manual

Postby don570 » 09 Nov 2013, 21:52

new version 2.2 available in first post
don570
Contributor
Contributor
 
Posts: 99
Joined: 01 Jun 2012, 01:37
Location: Ontario

Re: Gtkdialog Tutorial Manual

Postby don570 » 03 Dec 2013, 22:16

I've now reached version 2.4 of the manual.
See first post.
don570
Contributor
Contributor
 
Posts: 99
Joined: 01 Jun 2012, 01:37
Location: Ontario

Re: Gtkdialog Tutorial Manual

Postby francois » 09 Dec 2016, 02:41

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. :)
Voltaire: Le mieux est l'ennemi du bien.
User avatar
francois
Contributor
Contributor
 
Posts: 4718
Joined: 28 Dec 2010, 15:25
Location: C'est l'autome, en forêt les arbres d'ici nous en mettent plein la vue: les rouges, jaunes ...
Distribution: kde xfce porteus manjaro kubun

Re: Gtkdialog Tutorial Manual

Postby Bogomips » 09 Dec 2016, 13:46

francois wrote:Thanks Don. :)
A bit belated :twisted: (beat you to it Ed 8) )
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
Bogomips
Full of knowledge
Full of knowledge
 
Posts: 2293
Joined: 25 Jun 2014, 16:21
Location: London
Distribution: 3.2.2 Cinnamon & KDE5

Re: Gtkdialog Tutorial Manual

Postby francois » 09 Dec 2016, 23:19

Don't laugh about old men. :(
Voltaire: Le mieux est l'ennemi du bien.
User avatar
francois
Contributor
Contributor
 
Posts: 4718
Joined: 28 Dec 2010, 15:25
Location: C'est l'autome, en forêt les arbres d'ici nous en mettent plein la vue: les rouges, jaunes ...
Distribution: kde xfce porteus manjaro kubun

Re: Gtkdialog Tutorial Manual

Postby Ed_P » 10 Dec 2016, 22:02

Yeah.

Kids today. :(
Ed
User avatar
Ed_P
Contributor
Contributor
 
Posts: 2794
Joined: 06 Feb 2013, 23:12
Location: Western NY, USA
Distribution: Cinnamon 3.2.* 64-bit ISO

Re: Gtkdialog Tutorial Manual

Postby Blaze » 13 Dec 2016, 20:01

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 "Вход в систему"

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
-| --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>
Linux porteus 4.11.2-porteus #1 SMP PREEMPT Sat May 20 19:06:02 x86_64 Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Tobago PRO [Radeon R7 360 / R9 360 OEM] (rev 81) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
User avatar
Blaze
Warlord
Warlord
 
Posts: 1169
Joined: 28 Dec 2010, 12:31
Location: ☭ Russian Federation, Lipetsk region, Dankov
Distribution: ⟰ Porteus 3.2 Cinnamon x86_64

Re: Gtkdialog Tutorial Manual

Postby Blaze » 25 Mar 2017, 20:22

Any suggestions are welcome.
Linux porteus 4.11.2-porteus #1 SMP PREEMPT Sat May 20 19:06:02 x86_64 Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Tobago PRO [Radeon R7 360 / R9 360 OEM] (rev 81) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
User avatar
Blaze
Warlord
Warlord
 
Posts: 1169
Joined: 28 Dec 2010, 12:31
Location: ☭ Russian Federation, Lipetsk region, Dankov
Distribution: ⟰ Porteus 3.2 Cinnamon x86_64


Return to Development



Who is online

Users browsing this forum: No registered users and 1 guest