mirror of
https://github.com/cemu-project/idapython.git
synced 2024-11-28 03:54:18 +01:00
chooser.py: Fixed chooser example and added a proper header
This commit is contained in:
parent
a33eeef018
commit
9c4907d76c
@ -1,7 +1,11 @@
|
||||
#---------------------------------------------------------------------
|
||||
# Chooser test
|
||||
#
|
||||
# Demonstration of the new chooser usage
|
||||
# This script demonstrates the usage of the class-based chooser.
|
||||
#
|
||||
|
||||
# Author: Gergely Erdelyi <dyce@d-dome.net>
|
||||
#---------------------------------------------------------------------
|
||||
from idaapi import Choose
|
||||
|
||||
#
|
||||
# Modal chooser
|
||||
@ -21,7 +25,6 @@ if ch > 0:
|
||||
else:
|
||||
print "Escape from chooser"
|
||||
|
||||
|
||||
#
|
||||
# Normal chooser
|
||||
#
|
||||
@ -43,4 +46,3 @@ class MyChoose(Choose):
|
||||
chooser = MyChoose([ "First", "Second", "Third" ], "MyChoose")
|
||||
# Run the chooser
|
||||
ch = chooser.choose()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user