chooser.py: Fixed chooser example and added a proper header

This commit is contained in:
gergely.erdelyi 2008-06-27 20:41:37 +00:00
parent a33eeef018
commit 9c4907d76c

View File

@ -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()