Skip to content

Commit 051dfde

Browse files
ctothclaude
andcommitted
Fix SizedFrame.set_content_padding() to use correct SetSizerProps API
Previous commit incorrectly changed from SetSizerProps to SetSizerProp. The wxPython API requires border value to be a tuple (directions, amount), not just an int. Reverted to correct API: SetSizerProps(border=("all", padding)) Fixes TypeError: cannot unpack non-iterable int object 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent cbedf50 commit 051dfde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gui_builder/widgets/wx_widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1623,7 +1623,7 @@ def set_content_padding(self, padding: int) -> None:
16231623
padding (int): Padding in pixels around all content
16241624
"""
16251625
pane: sc.SizedPanel = self.control.GetContentsPane()
1626-
pane.SetSizerProp("border", padding)
1626+
pane.SetSizerProps(border=("all", padding))
16271627

16281628

16291629
class MDIParentFrame(BaseFrame[FieldType, wx.MDIParentFrame]):

0 commit comments

Comments
 (0)