mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
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))
|