Merge pull request #980 from RobinD42/fix-issue974

Add wx.StaticBox.GetBordersForSizer
(cherry picked from commit 49d0592e4a)
This commit is contained in:
Robin Dunn
2018-08-29 23:11:32 -07:00
parent 94f8377b77
commit 10c34f20e7
4 changed files with 28 additions and 3 deletions

View File

@@ -13,6 +13,13 @@ class statbox_Tests(wtc.WidgetTestCase):
s = wx.StaticBox()
s.Create(self.frame, label='StaticBox')
def test_statboxGetBordersForSizer(self):
s = wx.StaticBox(self.frame, label='StaticBox')
topBorder, otherBorder = s.GetBordersForSizer()
assert isinstance(topBorder, int)
assert isinstance(otherBorder, int)
assert topBorder >= 0
assert otherBorder >= 0
#---------------------------------------------------------------------------