mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
2 tests still fail: - tircbot would need a benign pragma because of the locks - tgetfileinfo uses os.getFileInfo() on nil, which segfaults instead of throwing an exception as the tester expects
18 lines
354 B
Nim
18 lines
354 B
Nim
# 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))
|