mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 11:30:06 +01:00
Test dc.DrawLines to check PySequence --> wxPointList conversion
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -8,7 +8,7 @@ pngFile = os.path.join(os.path.dirname(__file__), 'toucan.png')
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
class DCTests(wtc.WidgetTestCase):
|
||||
class dc_Tests(wtc.WidgetTestCase):
|
||||
|
||||
def test_ConstantsExist(self):
|
||||
wx.CLEAR
|
||||
@@ -130,6 +130,13 @@ class DCTests(wtc.WidgetTestCase):
|
||||
self.assertTrue(type(values) == list)
|
||||
self.assertTrue(len(values) == 5)
|
||||
|
||||
def test_dcPointLists(self):
|
||||
dc = wx.ClientDC(self.frame)
|
||||
|
||||
dc.DrawLines([wx.Point(5,5), wx.Point(25,5), wx.Point(25,25), wx.Point(25,5), wx.Point(5,5)])
|
||||
dc.DrawLines([(15,15), (35,15), (35,35), (35,15), (15,15)])
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user