Nim/tests/tdialogs.nim
2009-09-15 23:22:22 +02:00

17 lines
353 B
Nim
Executable file

# 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))