home *** CD-ROM | disk | FTP | other *** search
/ Hackers Magazine 57 / CdHackersMagazineNr57.iso / Software / Multimedia / k3d-setup-0.7.11.0.exe / share / k3d / scripts / user_interface.py < prev    next >
Text File  |  2008-04-16  |  610b  |  18 lines

  1. #python
  2.  
  3. import k3d
  4.  
  5. k3d.ui().message("This is a message!")
  6. k3d.ui().warning_message("This is a warning message!")
  7. k3d.ui().error_message("This is an error message!")
  8.  
  9. result = k3d.ui().query_message("Pick one!", ["Choice 1", "Choice 2", "Choice 3"])
  10. k3d.ui().message("You chose " + str(result))
  11.  
  12. result = k3d.ui().get_file_path("read", "test", "Choose file to read (doesn't actually read anything):", "")
  13. k3d.ui().message("You chose " + str(result))
  14.  
  15. result = k3d.ui().get_file_path("write", "test", "Choose file to write (doesn't actually write anything):", "")
  16. k3d.ui().message("You chose " + str(result))
  17.  
  18.