mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 11:30:06 +01:00
Update test_window.py
Add checks to ensure correct type is returned per input.
This commit is contained in:
@@ -122,6 +122,12 @@ class WindowTests(wtc.WidgetTestCase):
|
||||
val = self.frame.DLG_UNIT((10, 10))
|
||||
_check(val)
|
||||
|
||||
val = wx.DLG_UNIT(self.frame, wx.Point(10, 10))
|
||||
assert isinstance(val, wx.Point)
|
||||
|
||||
val = wx.DLG_UNIT(self.frame, wx.Size(10, 10))
|
||||
assert isinstance(val, wx.Size)
|
||||
|
||||
wx.DLG_SZE
|
||||
wx.DLG_PNT
|
||||
|
||||
|
||||
Reference in New Issue
Block a user