mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 09:40:07 +01:00
37 lines
1.1 KiB
Python
37 lines
1.1 KiB
Python
import unittest
|
|
from unittests 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 AboutBox Test')
|
|
info.SetDevelopers(['Goofy', 'Mickey', 'Donald'])
|
|
info.SetDescription('This is a very goofy application')
|
|
info.SetCopyright('(c) by Goofy Enterprises, Inc.')
|
|
return info
|
|
|
|
|
|
def test_aboutdlgNative(self):
|
|
if not 'wxMSW' in wx.PlatformInfo:
|
|
info = self._makeInfo()
|
|
wx.CallLater(25, self.closeDialogs)
|
|
wx.adv.AboutBox(info, self.frame)
|
|
|
|
def test_aboutdlgGeneric(self):
|
|
info = self._makeInfo()
|
|
wx.CallLater(25, self.closeDialogs)
|
|
wx.adv.GenericAboutBox(info, self.frame)
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|