Skip to content

Instantly share code, notes, and snippets.

@hasii2011
Last active January 16, 2023 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hasii2011/23409853ab84aafe2ec1c598a73d6790 to your computer and use it in GitHub Desktop.
Save hasii2011/23409853ab84aafe2ec1c598a73d6790 to your computer and use it in GitHub Desktop.
wxPython Right Align Button in SizedPanel
# parent should be a sized panel
sizedPanel: SizedPanel = SizedPanel(parent)
sizedPanel.SetSizerType('horizontal')
sizedPanel.SetSizerProps(expand=False, halign='right') # expand False allows aligning right
self._cloneButton: Button = Button(sizedPanel, label='Clone')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment