13.07.2015 Views

The wxPython tutorial

The wxPython tutorial

The wxPython tutorial

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>The</strong> Graphics Device Interfacehttp://www.zetcode.com/wxpython/gdi/Figure: Gradientswx.BrushBrush is an elementary graphics object. It is used to paint thebackground of graphics shapes, such as rectangles, ellipses orpolygons.wx.Brush(wx.Colour colour, style=wx.SOLID)<strong>The</strong> constructor of the wx.Brush accepts two parameters.Colour name and style. <strong>The</strong> following is a list of possible brushstyles.Brush styleswx.SOLIDwx.STIPPLEwx.BDIAGONAL_HATCHwx.CROSSDIAG_HATCHwx.FDIAGONAL_HATCHwx.CROSS_HATCHwx.HORIZONTAL_HATCHwx.VERTICAL_HATCHwx.TRANSPARENT#!/usr/bin/python# brushes.py14 de 44 27/04/2008 1:08

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

Saved successfully!

Ooh no, something went wrong!