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.

<strong>wxPython</strong> widgetshttp://www.zetcode.com/wxpython/widgets/Figure: CentralEurope.py#!/usr/bin/python# centraleurope.pyimport wxclass CentralEurope(wx.Dialog):def __init__ (self, parent, ID, title):wx.Dialog.__init__(self, parent, ID, title, size=(360, 370))font = wx.Font(10, wx.DEFAULT, wx.NORMAL, wx.BOLD)heading = wx.StaticText(self, -1, '<strong>The</strong> Central Europe', (130, 15))heading.SetFont(font)wx.StaticLine(self, -1, (25, 50), (300,1))wx.StaticText(self, -1, 'Slovakia', (25, 80))wx.StaticText(self, -1, 'Hungary', (25, 100))wx.StaticText(self, -1, 'Poland', (25, 120))wx.StaticText(self, -1, 'Czech Republic', (25, 140))wx.StaticText(self, -1, 'Germany', (25, 160))wx.StaticText(self, -1, 'Slovenia', (25, 180))wx.StaticText(self, -1, 'Austria', (25, 200))wx.StaticText(self, -1, 'Switzerland', (25, 220))wx.StaticText(self, -1, '5 379 000', (250, 80))wx.StaticText(self, -1, '10 084 000', (250, 100))wx.StaticText(self, -1, '38 635 000', (250, 120))wx.StaticText(self, -1, '10 240 000', (250, 140))wx.StaticText(self, -1, '82 443 000', (250, 160))wx.StaticText(self, -1, '2 001 000', (250, 180))7 de 29 27/04/2008 1:04

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

Saved successfully!

Ooh no, something went wrong!