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>wxPython</strong> widgetshttp://www.zetcode.com/wxpython/widgets/wx.StaticText(self, -1, '8 032 000', (250, 200))wx.StaticText(self, -1, '7 288 000', (250, 220))wx.StaticLine(self, -1, (25, 260), (300,1))sum = wx.StaticText(self, -1, '164 102 000', (240, 280))sum_font = sum.GetFont()sum_font.SetWeight(wx.BOLD)sum.SetFont(sum_font)wx.Button(self, 1, 'Ok', (140, 310), (60, 30))self.Bind(wx.EVT_BUTTON, self.OnOk, id=1)self.Centre()self.ShowModal()self.Destroy()def OnOk(self, event):self.Close()app = wx.App()CentralEurope(None, -1, 'centraleurope.py')app.MainLoop()wx.StaticTextA wx.StaticText widget displays one or more lines of read-onlytext. wx.StaticText Styleswx.ALIGN_RIGHTiwx.ALIGN_LEFTwx.ALIGN_CENTER / wx.ALIGN_CENTREwx.ST_NO_AUTORESIZEFigure: statictext.py8 de 29 27/04/2008 1:04

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

Saved successfully!

Ooh no, something went wrong!