Last active
January 16, 2023 16:35
-
-
Save hasii2011/23409853ab84aafe2ec1c598a73d6790 to your computer and use it in GitHub Desktop.
wxPython Right Align Button in SizedPanel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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