ArticleslgStudy

computer science

WxWidgets

WxWidgets is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand WxWidgets rather than just read about it. In short: wxWidgets (formerly wxWindows) is a widget toolkit and tools library for creating graphical user interfaces (GUIs) for cross-platform applications. wxWidgets enables a program's GUI code to compile and run on several computer platforms with no significant code changes. A wide choice of compilers and other tools to use with wxWidgets facilitates development of sophisticated applications. wxWidgets supports a comprehe…

WxWidgets — main illustration
WxWidgets — illustration

Key takeaways

  • WxWidgets belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect WxWidgets to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of WxWidgets from memory before moving on to harder problems.

Reference excerpt

wxWidgets (formerly wxWindows) is a widget toolkit and tools library for creating graphical user interfaces (GUIs) for cross-platform applications. wxWidgets enables a program's GUI code to compile and run on several computer platforms with no significant code changes. A wide choice of compilers and other tools to use with wxWidgets facilitates development of sophisticated applications. wxWidgets supports a comprehensive range of popular operating systems and graphical libraries, both proprietary and free. The project was started under the name wxWindows in 1992 by Julian Smart at the University of Edinburgh. The project was renamed wxWidgets in 2004 in response to a trademark claim by Microsoft UK. It is free and open source software, distributed under the terms of the wxWidgets Licence, which satisfies those who wish to produce for GPL and proprietary software.

Portability and deployment wxWidgets covers systems such as Microsoft Windows, macOS (Carbon and Cocoa), iOS (Cocoa Touch), Linux/Unix (X11, Motif, and GTK), OpenVMS, OS/2 and AmigaOS. A version for embedded systems is under development. wxWidgets is used across various industry sectors, most notably by Xerox, Advanced Micro Devices (AMD), Lockheed Martin, NASA and the Center for Naval Analyses. It is also used in the public sector and education by, for example, Dartmouth Medical School, National Human Genome Research Institute, National Center for Biotechnology Information, and many others. wxWidgets is used in many open source projects, and by individual developers.

History wxWidgets (initially wxWindows; "w" is for Windows, and "x" is for X Window System) was started in 1992 by Julian Smart at the University of Edinburgh. He attained an honours degree in Computational science from the University of St Andrews in 1986, and is still a core developer. On 20 February 2004, the developers of wxWindows announced that the project was changing its name to wxWidgets, as a result of Microsoft requesting Julian Smart to respect Microsoft's United Kingdom trademark of the term Windows. Major release versions were 2.4 on 6 January 2003, 2.6 on 21 April 2005 and 2.8.0 on 14 December 2006. Version 3.0 was released on 11 November 2013. wxWidgets has participated in the Google Summer of Code since 2006.

License

wxWidgets is distributed under a custom made wxWindows Licence, similar to the GNU Lesser General Public License (LGPL), with an exception stating that derived works in binary form may be distributed on the user's own terms. This license is a free software license approved by the FSF, making wxWidgets free software. It has been approved by the Open Source Initiative (OSI).

Official support

Supported platforms wxWidgets is supported on the following platforms:

Windows – wxMSW (64-bits Windows XP up to Windows 11 and 32-bits Windows 3.11 for Workgroups (with Win32s extension) up to Windows 11) Linux/Unix – wxGTK, wxX11, wxMotif macOS – wxMac (Mac OS X 10.3 using Carbon, Mac OS X 10.5 using Cocoa), wxOSX/Cocoa (32/64-bits Mac OS X 10.7 or later) OS/2 – wxOS2, wxPM, wxWidgets for GTK or Motif can be compiled on OS/2 Embedded platforms – wxEmbedded

External ports Amiga – wxWidgets-AOS: AmigaOS port (Work In Progress)

Supported compilers wxWidgets is officially confirmed to work properly with the following compilers:

Programming language bindings

The wxWidgets library is implemented in C++, with bindings available for many commonly used programming languages. wxWidgets is best described as a native mode toolkit as it provides a thin abstraction to a platform's native widgets, contrary to emulating the display of widgets using graphic primitives. Calling a native widget on the target platform results in a more native looking interface than toolkits such as Swing (for Java), as well as offering performance and other benefits. The toolkit is also not restricted to GUI development, having an inter-process communication layer, socket networking functionality, and more.

RAD tools and IDEs for wxWidgets

There are many rapid application development (RAD) and integrated development environment (IDE) tools available. Notable tools include:

Code::Blocks (via wxSmith plugin) CodeLite (via wxCrafter plugin) wxFormBuilder

Applications built using wxWidgets

Notable applications that use wxWidgets:

0 A.D. – a FOSS video game similar to Age of Empires Amaya – web authoring tool aMule – peer-to-peer file sharing application Audacity – cross-platform sound editor (until version 4.0.0) BitTorrent – peer-to-peer file sharing application Berkeley Open Infrastructure for Network Computing – an open-source middleware system Code::Blocks – C/C++ IDE CodeLite – simple C++ Editor (Collection of free Tools, implemented by plugins) FileZilla – FTP client FreeFileSync – a free and open-source file synchronization software GrandOrgue – virtual pipe organ simulator Guayadeque Music Player – a music player with database Hollywood – uses wxWidgets in its RapaGUI plugin KiCad – a free software suite for electronic design automation (EDA) TortoiseCVS – CVS client BeerSmith - Homebrewing software for creating, scaling, and refining beer recipes

See also

FLTK – a light, cross platform, non-native widget toolkit FOX toolkit – a fast, open source, cross-platform widget toolkit GTK – the GIMP toolkit, a widget toolkit used by GNOME applications gtkmm – C++ version of GTK Juce – an extensive cross-platform widget toolkit IUP – a multi-platform toolkit for building native graphical user interfaces Qt (toolkit) – an application framework used by KDE applications U++ – a C++ cross-platform development framework Widget toolkit List of widget toolkits

References

Further reading Smart, Julian; Hock, Kevin; Csomor, Stefan (5 August 2005), Cross-Platform GUI Programming with wxWidgets, Prentice Hall, ISBN 978-0-13-147381-2

External links

Official website

Illustrations

WxWidgets illustration
WxWidgets: wxPython logo
wxPython logo
WxWidgets: CodeLite under Windows XP
CodeLite under Windows XP
WxWidgets: Code::Blocks running under Ubuntu
Code::Blocks running under Ubuntu
WxWidgets: Amaya under Windows 7
Amaya under Windows 7

Worked examples

Example 1 — a first encounter with WxWidgets

Start with the simplest possible case. Write down what WxWidgets claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to WxWidgets before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about WxWidgets ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of WxWidgets

In research
WxWidgets appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses WxWidgets in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
WxWidgets is common in secondary-school and first-year university syllabi. It links to neighbouring topics 1992 software, C++ libraries, Cross-platform software, so understanding it makes those chapters shorter.
In everyday life
Look for WxWidgets outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “WxWidgets” →

How to study WxWidgets in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what WxWidgets means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain WxWidgets out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is WxWidgets in simple terms?

wxWidgets (formerly wxWindows) is a widget toolkit and tools library for creating graphical user interfaces (GUIs) for cross-platform applications. wxWidgets enables a program's GUI code to compile and run on several computer platforms with no significant code changes. A wide choice of compilers an…

Why does WxWidgets matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study WxWidgets?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on WxWidgets.

Tags

  • 1992 software
  • C++ libraries
  • Cross-platform software
  • Free computer libraries
  • Free software programmed in C++
  • Widget toolkits
  • WxWidgets
  • X-based libraries

Keep exploring