xzlwbl / idapython

Automatically exported from code.google.com/p/idapython
Other
0 stars 0 forks source link

add_menu_item and other GUI callback functions don't work #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Here is a patch against the latest SVN (r84) that allows 
add_menu_item to work as expected.  If you are comfortable 
with the this patch works, then I'll work on some of the other
gui functions that require callbacks.

Example:

def callback( arg1, arg2 ):
  print "You clicked here %r, %r" % ( arg1, arg2 )
idaapi.add_menu_item( "File/IDC command...", "Foo...", "Alt-2", 1,
callback, ("Hello", "World") )

Original issue reported on code.google.com by rosskin...@gmail.com on 15 Aug 2008 at 8:14

Attachments:

GoogleCodeExporter commented 9 years ago
The patch works flawlessly and it is now applied to the main tree with minor 
reformatting.

You are welcome to submit more patches for other features that you might find 
useful.
The project mailing list is hosted at http://groups.google.com/group/idapython, 
you are
welcome to join and discuss any future issues.

Thank you and looking forward to future contributions!

Original comment by gergely.erdelyi on 17 Aug 2008 at 5:49