diff options
Diffstat (limited to 'tests/accept/compile/tdialogs.nim')
-rw-r--r-- | tests/accept/compile/tdialogs.nim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/accept/compile/tdialogs.nim b/tests/accept/compile/tdialogs.nim new file mode 100644 index 000000000..90f241cdf --- /dev/null +++ b/tests/accept/compile/tdialogs.nim @@ -0,0 +1,17 @@ +# Test the dialogs module + +import dialogs, gtk2 + +gtk_nimrod_init() + +var x = ChooseFilesToOpen(nil) +for a in items(x): + writeln(stdout, a) + +info(nil, "start with an info box") +warning(nil, "now a warning ...") +error(nil, "... and an error!") + +writeln(stdout, ChooseFileToOpen(nil)) +writeln(stdout, ChooseFileToSave(nil)) +writeln(stdout, ChooseDir(nil)) |