Buttons and ShowModal() in dialogs

I don’t quite (or at all) understand how to create buttons on a dialog that I can check with ShowModal(). The best resource I can find on this topic is this tutorial, but I don’t understand what they mean with sizers (heck, I don’t even know what a sizer is).

While I’m at it, what exactly does ShowModal() do, anyway?

"ShowModal()" means that the window created by the dialog will be the
only visible window in the wx app that the user can interact with.

Sizers are intelligent widget placement and resizing algorithms for
visible widgets (wx.buttons, wx.listctrls, windows, etc, etc.

It's a shame that there seems to be a general lack of good definitions
for such basic wx entities.

You need to read basic tutorials for both wxPython and for wxPython
sizers. Don't just read them - run each one of them and play with
their parameters to see the effects. Google is your friend - use it !
Search strings should be of the form "wxpython xxx" where "xxx" is
your particular subject area of wxPython.

Start here, first:

    http://www.wxpython.org/tutorial.php

Also be sure to download and explore the wxPython demo package. It is
a separate package from the wxPython. I really don't understand why it
is not automatically included, at least as an option, with the
wxPython download itself.

Ray Pasco

···

On Jul 11, 12:15 pm, 音本四 <onp...@gmail.com> wrote:

I don't quite (or at all) understand how to create buttons on a dialog that
I can check with ShowModal(). The best resource I can find on this
topic is this
tutorial <http://wiki.wxpython.org/AnotherTutorial#Custom_dialogs&gt;, but I
don't understand what they mean with sizers (heck, I don't even know what a
sizer is).

While I'm at it, what exactly does ShowModal() do, anyway?