def reposition_form_elements(self):
        """Position form buttons below widget subform."""
        ### align subform below widget kind option menu
        self.widget_subform.rect.topleft = self.widget_kind_options.rect.move(
            0, 10
        ).bottomleft

        ### align cancel button left with the self.rect
        ### left, with a little offset
        self.cancel_button.rect.left = self.rect.move(5, 0).left

        ### align cancel button top with the widget subform
        ### bottom, then offset it a little

        self.cancel_button.rect.top = self.widget_subform.rect.bottom
        self.cancel_button.rect.y += 10

        ### then align the submit button topleft with the
        ### cancel button topright just a little bit more
        ### to the right
        self.submit_button.rect.topleft = self.cancel_button.rect.move(10, 0).topright
Position form buttons below widget subform.
nodezator/editing/widgetpicker/main.py