mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 11:00:07 +01:00
Merge pull request #980 from RobinD42/fix-issue974
Add wx.StaticBox.GetBordersForSizer
(cherry picked from commit 49d0592e4a)
This commit is contained in:
@@ -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
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user