Initial import
This commit is contained in:
commit
405b86068e
324 changed files with 163599 additions and 0 deletions
17
tests/tdialogs.nim
Executable file
17
tests/tdialogs.nim
Executable file
|
|
@ -0,0 +1,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))
|
||||
Loading…
Add table
Add a link
Reference in a new issue