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> dialogshttp://www.zetcode.com/wxpython/dialogs/info.SetWebSite('http://www.zetcode.com')info.SetLicence(licence)info.AddDeveloper('jan bodnar')info.AddDocWriter('jan bodnar')info.AddArtist('<strong>The</strong> Tango crew')info.AddTranslator('jan bodnar')<strong>The</strong> next thing to do is to call all necessary methods upon thecreated wx.AboutDialogInfo object.wx.AboutBox(info)In the end we create a wx.AboutBox widget. <strong>The</strong> only parameter ittakes is the wx.AboutDialogInfo object.And of course, if we want to have an animation or some other eyecandy, we must implement our about dialog manually.About dialog boxA custom dialogIn the next example we create a custom dialog. An image editingapplication can change a color depth of a picture. To provide thisfuncionality, we could create a suitable dialog.8 de 11 27/04/2008 1:04

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

Saved successfully!

Ooh no, something went wrong!