dialog for "fast decisions"

I would like to have a special dialog for something, which is asked
frequently and it is convenient for it
Is there something usable from the wxPython distribution?

concrete Example:
Search/Replace

Two options (Skip and replace)

Default behaviour should be, that the current occurance is replaced by
simply hitting enter and jumps to the next founded text. Thats the case,
but if the user want to skip that, he must change with cursor (down) key
to the Skip and press enter. In a long text, it is tiresome, so:

With the key "s", the user should skip that occurance (without
exclicitly need to hit enter), and the search/replace should jump to the
next occurance and offer that same dialog again.

Currently I have a single choice dialog

···

===============
Replace
Skip

                    Cancel Ok

Ok, I need propably accelerator keys, The question is,
a) to write an own dialog
or b) is it possible to subclass wx.SingleChoiceDialog to use
accelerator keys?

Theres a FindReplaceDialog in the demo you can use.

···

On Aug 29, 10:37 pm, FranzSt <franz.steinhaeus...@gmx.at> wrote:

Ok, I need propably accelerator keys, The question is,
a) to write an own dialog
or b) is it possible to subclass wx.SingleChoiceDialog to use
accelerator keys?

Yes, that should work.

···

On 8/29/10 7:37 AM, FranzSt wrote:

Ok, I need propably accelerator keys, The question is,
a) to write an own dialog
or b) is it possible to subclass wx.SingleChoiceDialog to use
accelerator keys?

--
Robin Dunn
Software Craftsman

Mark wrote:

Theres a FindReplaceDialog in the demo you can use.

Ah yes, but I don't see it working actually. Maybe the demo could be
extended to apply the search/replace dialog on the current source code.
Better not to ask, because there could be a reply "Submit a patch" :slight_smile: