Training, Open Source computer languages

PerlPHPPythonMySQLhttpd / TomcatTclRubyJavaC and C++LinuxCSS

Search our site for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
Graphic User Interfaces (GUIs)

Many of the scripting languages we teach include the ability to provide a GUI - a Graphic User Interface. I'll describe some particular GUIs later in this article, but let's start with ...

THE PRINCIPLES OF GUI PROGRAMMING

Writing a GUI based program is very different to writing a command line one - although you'll find if you've done a good design that you can use shared named blocks of code (subs, procs, functions or methods depending on the language) from both so you shouldn't have a major rework to write a GUI.

All the programming work of a GUI is done in the SETUP CODE.
 You define a set of components (commonly known as widgets) which you want to appear
 You describe how they're to be laid out using a geometry manager
 You give a list of things that may happen (events) and define what's to
happen when an event occurs

And you then enter a main program loop that
 Displays the GUI
 Awaits events
 Acts on the events

COMMONLY AVAILABLE GUIS

Tk - "Toolkit". Originally written by John Ousterhout to go with Tcl, Tcl/Tk is now a major use of Tcl - the Tool Control Language. It's also available in Python (Tkinter) and in Perl (Perl/Tk), though not as widely used there as it is with Tcl
 Links
- Tcl/Tk information and training - Tkinter information and training - Perl/Tk information and training
wx - as in wxPython. A more recent windowing system originating from Python's support of the Windows Graphics look and feel. Now gaining great popularity.
 Link
- wxPython information and training
Qt - Qt is a very powerful GUI library written in C++ and originally intended as a GUI for that language; it's available and well supported by Python.
 Link
- PyQt information and training
AWT and Swing - The AWT (Abstract Windowing Toolkit) is Java's low level GUI. More complex components which allow realistic code to be written within sorter pieces of code may be found in Swing.

PHP isn't often used for stand alone applications, but you
can use it through a GUI with GTK.
All of the GUIs mentioned are available / can run on Windows systems, on Mac OS X systems, and on Linux and Unix systems running the X Windows system; in the majority of cases, they'll use the graphics and the look and feel of those systems.

If you're writing a web application, you're likely to design the look and feel of your page (your GUI) using HTML and then use a system such as CGI (programmed in Perl of Python) or PHP in order to provide the equivalent of event handling.
 Links
- Perl and Perl on the Web training - Python (including web use) training - PHP training

See also 2 day course - the Tk GUI

Please note that articles in this section of our web site were current and correct to the best of our ability when published, but by the nature of our business may go out of date quite quickly. The quoting of a price, contract term or any other information in this area of our website is NOT an offer to supply now on those terms - please check back via our main web site
Related Material

Perl/Tk
Additional PHP Material
Python and the Qt GUI
wxPython
Tcl/Tk - Introduction to Tk
Java - Abstract Windowing Toolkit
Ruby GUIs, XML, SQL Database Connectivity
Extending Graphics in Java
resource index - Deployment
Solutions centre home page

You'll find shorter technical items at The Horse's Mouth and delegate's questions answered at the Opentalk forum.

At Well House Consultants, we provide training courses on subjects such as Ruby, Perl, Python, Linux, C, C++, Tcl/Tk, Tomcat, PHP and MySQL. We're asked (and answer) many questions, and answers to those which are of general interest are published in this area of our site.


WELL HOUSE CONSULTANTS LTD.: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 0800 043 8225 or 01225 708225 • FAX: 0845 8382 405 or 01225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho