mirror of
https://github.com/cemu-project/idapython.git
synced 2024-11-30 21:14:20 +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
|
# Modal chooser
|
||||||
@ -21,7 +25,6 @@ if ch > 0:
|
|||||||
else:
|
else:
|
||||||
print "Escape from chooser"
|
print "Escape from chooser"
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Normal chooser
|
# Normal chooser
|
||||||
#
|
#
|
||||||
@ -43,4 +46,3 @@ class MyChoose(Choose):
|
|||||||
chooser = MyChoose([ "First", "Second", "Third" ], "MyChoose")
|
chooser = MyChoose([ "First", "Second", "Third" ], "MyChoose")
|
||||||
# Run the chooser
|
# Run the chooser
|
||||||
ch = chooser.choose()
|
ch = chooser.choose()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user