mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-09-05 01:10:12 +02:00
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69777 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
27 lines
661 B
Python
27 lines
661 B
Python
import imp_unittest, unittest
|
|
import wtc
|
|
import wx
|
|
import os
|
|
|
|
icoFile = os.path.join(os.path.dirname(__file__), 'mondrian.ico')
|
|
pngFile = os.path.join(os.path.dirname(__file__), 'pointy.png')
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
class iconloc_Tests(wtc.WidgetTestCase):
|
|
|
|
def test_iconloc1(self):
|
|
loc = wx.IconLocation(icoFile)
|
|
i = wx.Icon(loc)
|
|
|
|
def test_iconloc2(self):
|
|
loc = wx.IconLocation()
|
|
loc.SetFileName(icoFile)
|
|
i = wx.Icon(loc)
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|