diff --git a/unittests/test_lib_plot.py b/unittests/test_lib_plot.py index b6ad5c25..a2face6e 100644 --- a/unittests/test_lib_plot.py +++ b/unittests/test_lib_plot.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- import unittest -import wtc +from unittests import wtc import wx import wx.lib.plot as wxplot diff --git a/unittests/test_lib_throbber.py b/unittests/test_lib_throbber.py index 3bc2bbcd..1b673b6c 100644 --- a/unittests/test_lib_throbber.py +++ b/unittests/test_lib_throbber.py @@ -4,7 +4,7 @@ import wx import wx.lib.throbber as th -import throbImages +from unittests import throbImages #--------------------------------------------------------------------------- diff --git a/unittests/test_window.py b/unittests/test_window.py index 50903bd6..ec977a24 100644 --- a/unittests/test_window.py +++ b/unittests/test_window.py @@ -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 + + #---------------------------------------------------------------------------