From 9c4907d76ca03b7b83ea2268a83b0532b1d0e60a Mon Sep 17 00:00:00 2001 From: "gergely.erdelyi" Date: Fri, 27 Jun 2008 20:41:37 +0000 Subject: [PATCH] chooser.py: Fixed chooser example and added a proper header --- examples/chooser.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/examples/chooser.py b/examples/chooser.py index 87a0949..216eae7 100644 --- a/examples/chooser.py +++ b/examples/chooser.py @@ -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 +#--------------------------------------------------------------------- +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() -