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.

http://www.zetcode.com/wxpython/tips/Figure: Isabelle#!/usr/bin/python# Isabelleimport wxID_TIMER = 1ID_EXIT = 2ID_ABOUT = 3ID_BUTTON = 4class Isabelle(wx.Frame):def __init__(self, parent, id, title):wx.Frame.__init__(self, parent, id, title)self.timer = wx.Timer(self, ID_TIMER)self.blick = 0file = wx.Menu()file.Append(ID_EXIT, '&Quit\tCtrl+Q', 'Quit Isabelle')help = wx.Menu()help.Append(ID_ABOUT, '&About', 'O Programe')menubar = wx.MenuBar()menubar.Append(file, '&File')menubar.Append(help, '&Help')self.SetMenuBar(menubar)3 de 15 27/04/2008 1:09

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

Saved successfully!

Ooh no, something went wrong!