Merge branch 'master' into wip-demo

This commit is contained in:
Robin Dunn
2016-08-02 11:04:21 -07:00
3 changed files with 28 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
import unittest
import wtc
from unittests import wtc
import wx
import wx.lib.plot as wxplot

View File

@@ -4,7 +4,7 @@ import wx
import wx.lib.throbber as th
import throbImages
from unittests import throbImages
#---------------------------------------------------------------------------

View File

@@ -100,7 +100,32 @@ class WindowTests(wtc.WidgetTestCase):
self.assertEqual(a[1], b.y)
self.assertEqual(c[0], d.x)
self.assertEqual(c[1], d.y)
def test_DLG_UNIT(self):
def _check(val):
a, b = val
assert isinstance(a, int)
assert isinstance(b, int)
val = wx.DLG_UNIT(self.frame, wx.Point(10,10))
_check(val)
val = wx.DLG_UNIT(self.frame, wx.Size(10,10))
_check(val)
val = wx.DLG_UNIT(self.frame, (10,10))
_check(val)
val = self.frame.DLG_UNIT(wx.Point(10, 10))
_check(val)
val = self.frame.DLG_UNIT(wx.Size(10, 10))
_check(val)
val = self.frame.DLG_UNIT((10, 10))
_check(val)
wx.DLG_SZE
wx.DLG_PNT
#---------------------------------------------------------------------------