Re: Re: GenButton and acceleratorTable

Robin Dunn <[email protected]> Thu, 20 Dec 2018 11:28:44 -0800 (PST)
Newsgroups gmane.comp.python.wxpython.devel
Message-ID <[email protected]>
On Thursday, December 20, 2018 at 9:06:39 AM UTC-8, Nicolas Pinault wrote:
>
> Le 19/12/2018 à 01:06, Robin Dunn a écrit :
> There is no menu in my app.
> Are you saying I have to use a menu in my app ?
>


No, but accelerator tables are meant to be used in conjunction with menus 
or toolbars, so it will generate EVT_MENU when the key is pressed. You 
don't need to have a menu to bind handers for EVT_MENU.



> What I want to achieve is to trig actions either by clicking a button, or 
> by hitting a key. I thought accelerator table is able to achieve this.
>


Do you really need Button or GenButton, or would normal toolbar tools work 
for you? They can have an icon plus a label if you need it.

--
Robin

>
>

-- 
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.