[wxPython-users] Adding "Standard" Buttons

Mark Guagenti mgenti at gentiweb.com
Wed Feb 13 10:49:15 PST 2008


wx.Panel has CreateStdDialogButtonSizer which can be used like:
panel.CreateStdDialogButtonSizer(wx.OK | wx.CANCEL)

http://www.wxpython.org/docs/api/wx.Dialog-class.html

On 2/13/08, Mark Erbaugh <mark at microenh.com> wrote:
> Is it possible to add additional "Standard" buttons to an application?
>
>  These are the buttons with ID's like ID_OK, ID_CANCEL.  I'd like to have
>  some additional standard buttons available throughout my application.
>
>  I could create a wx.Button descendants and use those, but I'm looking
>  for a way to create buttons with standard graphics and text just by
>  specifying the ID.
>
>  Thanks,
>  Mark
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
>  For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
>
>




More information about the wxpython-users mailing list