13.07.2015 Views

The wxPython tutorial

The wxPython tutorial

The wxPython tutorial

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Introduction to <strong>wxPython</strong>http://www.zetcode.com/wxpython/introduction/Controls module provides the common widgets found ingraphical applications. For example a Button, a Toolbar, or aNotebook. Widgets are called controls under Windows OS. <strong>The</strong>Core module consists of elementary classes, that are used indevelopment. <strong>The</strong>se classes include the Object class, which isthe mother of all classes, Sizers, which are used for widgetlayout, Events, basic geometry classses like Point andRectangle. <strong>The</strong> Graphics Device Interface (GDI) is a set ofclasses used for drawing onto the widgets. This modulecontains classes for manipulation of Fonts, Colours, Brushes,Pens or Images. <strong>The</strong> Misc module contains of various otherclasses and module functions. <strong>The</strong>se classes are used forlogging, application configuration, system settings, workingwith display or joystick. <strong>The</strong> Windows module consists ofvarious windows, that form an application. Panel, Dialog,Frame or Scrolled Window.<strong>wxPython</strong> API<strong>wxPython</strong> API is a set of functions and widgets. Widgets areessential building blocks of a GUI application. Under Windowswidgets are calles controls. We can roughly divideprogrammers into two groups. <strong>The</strong>y code applications orlibraries. In our case, <strong>wxPython</strong> is a library that is used byapplication programmers to code applications. Technically,<strong>wxPython</strong> is a wrapper over a C++ GUI API called wxWidgets.So it is not a native API. e.g. not written directly in Python.<strong>The</strong> only native GUI library for an interpreted language that Iknow is Java's Swing library.In <strong>wxPython</strong> we have lot's of widgets. <strong>The</strong>se can be dividedinto some logical groups.Base Widgets<strong>The</strong>se widgets provide basic functionality for derived widgets.<strong>The</strong>y are called ancestors. <strong>The</strong>y are usually not used directly.4 de 9 27/04/2008 0:59

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!