From db46e7cfc66f10ebf9a863068d9b4df55249feec Mon Sep 17 00:00:00 2001 From: Elias Bachaalany Date: Sat, 7 Jan 2023 13:18:16 -0800 Subject: [PATCH] Show the chooser when the script is launched It is a bit confusing for beginners when they run the script and nothing happens. Now, when the script is launched, it shows the chooser --- .../widgets/tabular_views/custom/chooser_with_folders.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/widgets/tabular_views/custom/chooser_with_folders.py b/examples/widgets/tabular_views/custom/chooser_with_folders.py index 4c4b615..686da79 100644 --- a/examples/widgets/tabular_views/custom/chooser_with_folders.py +++ b/examples/widgets/tabular_views/custom/chooser_with_folders.py @@ -270,3 +270,8 @@ class idapython_tree_view_t(base_idapython_tree_view_t): self.netnode.supset(idx, repl, SUPVAL_COL0_DATA_TAG) self._dump_items() return [ida_kernwin.Choose.ALL_CHANGED] + sel + +# ----------------------------------------------------------------------- +if __name__ == '__main__': + form = idapython_tree_view_t("idapython_tree_view_t test", 100) + form.Show()