Norman Vine writes:

 > What I would like is a way to define menus something like
 > 
 > myMenu = (
 >      ('&File',
 >          ('New', (ALT, 'N'), self.OnFileNew),
 >          ('Open', (ALT, 'O'), self.OnFileOpen),
 >          ('Close', (ALT, 'C'), self.OnFileClose)),
 >      ('&Edit',
 >          ('Cut', (CTRL, 'X'), self.OnEditCut),
 >          ('Copy', (CTRL, 'C'), self.OnEditCopy),
 >          ('Paste', (CTRL, 'V'), self.OnEditPaste)))
 > 
 > It should be possible to come up with generator program
 > that can take the above, or something like it, that will write the
 > xml configuration files

I haven't looked into adding keyboard accelerators yet.  It's a tricky
problem, because we'll have to try to figure out at runtime what keys
are bound to do the same things as drop-down menus.


All the best,


David

-- 
David Megginson, [EMAIL PROTECTED], http://www.megginson.com/

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to