mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 19:10:09 +01:00
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71815 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
26 lines
723 B
Python
26 lines
723 B
Python
import imp_unittest, unittest
|
|
import wtc
|
|
import wx
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
class fontdlg_Tests(wtc.WidgetTestCase):
|
|
|
|
def test_fontdlg1(self):
|
|
data = wx.FontData()
|
|
data.SetInitialFont(wx.FFont(15, wx.FONTFAMILY_TELETYPE))
|
|
self.assertEqual(data.InitialFont.Family, wx.FONTFAMILY_TELETYPE)
|
|
|
|
dlg = wx.FontDialog(self.frame, data)
|
|
# TODO: find a safe way to test ShowModal on native dialogs
|
|
dlg.Destroy()
|
|
|
|
|
|
def test_fontdlg2(self):
|
|
wx.GetFontFromUser
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|