# -*- coding: iso8859-1 -*- # Copyright (c) 2004-5 Marek Hnilica. All rights reserved. # Module that provides 'About' dialog # Distributed under GPL version 2, or (at your option) later import wx import images from version import mBoxVersion ThanksText=\ '''Artem Baguinski > author of icon, suggestions Ben Gertzfield > ID3.py Vivake Gupta Pierre Hjalm Hyriand Alexander Kanavin > mp3.py Jan-Erik Meyer-Lütgens > suggestions Tuomas Peippo > suggestions Roland Schäuble > PyCDDB.py ... and to all bug-reporters. Thanks! ''' class AboutDialog(wx.Dialog): def __init__(self,parent): wx.Dialog.__init__(self,parent,-1,'About mBox',size=(300,400)) LogoPanel=wx.Panel(self,-1,pos=(0,0),size=(300,140)) LogoPanel.SetBackgroundColour('WHITE') BitMap=wx.StaticBitmap(LogoPanel,-1,images.getAboutPicBitmap()) BitMap.CenterOnParent() NotePanel=wx.Panel(self,-1,pos=(0,140),size=(300,260)) NoteBook=wx.Notebook(NotePanel,-1,size=(NotePanel.GetSize())) self.AboutPage=wx.Panel(NoteBook,-1) self.ThanksPage=wx.Panel(NoteBook,-1) wx.StaticText(self.AboutPage,-1,'mBox %s\n\n(c) 2004-5 Marek Hnilica\n\naiyyo@centrum.cz\nhttp://www.mbox.wz.cz'%mBoxVersion,pos=(10,20)) wx.TextCtrl(self.ThanksPage,-1,ThanksText,style=wx.TE_MULTILINE|wx.TE_DONTWRAP|wx.TE_READONLY,pos=(5,5),size=(285,215)) self.CenterOnParent() NoteBook.AddPage(self.AboutPage,'About') NoteBook.AddPage(self.ThanksPage,'Thanks') self.ShowModal() self.Destroy()