mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
Add wx.FontData and wx.FontDialog
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71815 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
25
unittests/test_fontdlg.py
Normal file
25
unittests/test_fontdlg.py
Normal file
@@ -0,0 +1,25 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user