summary refs log tree commit diff stats
path: root/tests/tdialogs.nim
blob: 90f241cdfa6d13737396760fec2870c14d1e6572 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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))