summary refs log blame commit diff stats
path: root/tests/accept/compile/tdialogs.nim
blob: d161a976de916fd49187d41b5f663d4cf99c8912 (plain) (tree)
1
2
3
4
5



                         
                  











                                      
# Test the dialogs module

import dialogs, gtk2

gtk2.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))