[wxPython] How can I keep buttons on top of a notebook

Hi Folks,

  A dialog in an application I am working on, consists of several nested
notebooks, one of the notebooks has six pages (soon to be seven I think)
and these pages all have the same OK/Cancel buttons in the same place.

  Is there an easy way for me to simply code one set of buttons and always
have them displayed in the notebook, regardless of which page is being
displayed? At the moment I am re-coding these buttons for each page, and
would rather simplify this if possible.

Nigel Linnett

Or you could create a base class derived from wxPanel which contains the OK
and Cancel buttons, then each notebook page could be derived from this base
panel...

Nigel Linnett wrote:

···

Hi Folks,

  A dialog in an application I am working on, consists of several nested
notebooks, one of the notebooks has six pages (soon to be seven I think)
and these pages all have the same OK/Cancel buttons in the same place.

  Is there an easy way for me to simply code one set of buttons and always
have them displayed in the notebook, regardless of which page is being
displayed? At the moment I am re-coding these buttons for each page, and
would rather simplify this if possible.

Nigel Linnett

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users

  Is there an easy way for me to simply code one set of buttons and always
have them displayed in the notebook, regardless of which page is being
displayed? At the moment I am re-coding these buttons for each page, and
would rather simplify this if possible.

You could put the notbook and the buttons on a wxPanel, and then not put
them in the notbook at all. Visually this would be real close to wha tyou
are looking for I think.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

Most people who do not play MUDs can silently ignore this!

For some time now I have been writing a cross-platform MUD client using
wxPython for GUI and Python for scripting.

I call it PyMUD for now, but someone might have taken the name already...

I am not wanting to go Open-Source with it yet, as I might consider to make
it commercial (well, more likely - cheap enough compared to Zugg's zMUD -
to support me some pizza and coke for development of new features etc) when
it matures..
But if someone of you are interested - mail me privately, and we can discuss
if I can give you current Beta for free (I do not promiss that though)

Reasons why I chose to create such program were:
  1) cross-platform (MUD-lovers and Win-haters in one person - cheer up!);
  2) powerful scripting (Python gives as much of it as you can handle).

Currently I have no intention to create GUI any similar to zMUD - all the
scripting
and setting definition is done through Python files which can be then loaded
into client.

Features currently implemented:
  Tested stuff:
    Simple commands ( ; separated );
    Python commands ( ! prefixed )
    Triggers ( regex based );
    Aliases ( regex based );
    Timers ( you can have as much of them as you want );
    Custom menu entries ( add your entries to main menu - sub-menus, menu
items
      to perform whatever actions you choose );
    Button bar ( can add your own buttons, labels, gauges to main GUI's button
bar );
    Status bar ( display important data - scripting variables etc here );
    Highlights ( regex based highlighting for incoming data );
    Gags ( regex based for not displaying certain incoming data );
    Hot-keys ( bind keys to commands ).
  Experimental stuff:
    Setting browser (read-only) to display current settings. This might become
main
      setting editor in future, but near future for sure...so if you cannot
handle writing
      your settings in text file rather than pointing and clicking - forget
about this :).
  Stuff not likely to be implemented in near future (or ever):
    Auto-Mapper (I am considering ways to do it, but do not want make
something new
      until basic things are not rock-stable...)
    VT-whatever emulation (not very likely you will be able to use this as
xterm or telnet
      to run Midnight Commander or whatever);
    ANSI-colors (this is not really hard, but since I myself am not using muds
who use this
      I do not want to do it for now).

Also there is no decent user documentation for now, but basic one will be
written shortly.

Jekabs Andrushaitis