mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
Add a new wx.adv extension module for those items that are in the wx adv lib in multi-lib builds.
Add AboutDialog. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
31
unittests/test_aboutdlg.py
Normal file
31
unittests/test_aboutdlg.py
Normal file
@@ -0,0 +1,31 @@
|
||||
import imp_unittest, unittest
|
||||
import wtc
|
||||
import wx
|
||||
import wx.adv
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
class aboutdlg_Tests(wtc.WidgetTestCase):
|
||||
|
||||
def _makeInfo(self):
|
||||
info = wx.adv.AboutDialogInfo()
|
||||
info.SetVersion('1.2.3')
|
||||
info.SetName('My Goofy App')
|
||||
info.SetDevelopers(['Goofy', 'Mickey', 'Donald'])
|
||||
info.SetDescription('This is a very goofy application')
|
||||
return info
|
||||
|
||||
def test_aboutdlgNative(self):
|
||||
info = self._makeInfo()
|
||||
wx.adv.AboutBox(info, self.frame)
|
||||
|
||||
def test_aboutdlgGeneric(self):
|
||||
info = self._makeInfo()
|
||||
wx.adv.GenericAboutBox(info, self.frame)
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Reference in New Issue
Block a user