home *** CD-ROM | disk | FTP | other *** search
/ PCNET 2006 October - Disc 2 / PCNET_CD_2006_10_2.iso / apps / k3d-all-in-one-setup-0.5.14.0.exe / k3d-setup-0.5.14.0.exe / share / scripts / user_interface.py < prev    next >
Encoding:
Text File  |  2006-01-24  |  495 b   |  18 lines

  1. #python
  2.  
  3. import k3d
  4.  
  5. k3d.ui.message("This is a message!")
  6.  
  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:", "")
  13. k3d.ui.message("You chose " + result)
  14.  
  15. result = k3d.ui.get_file_path("write", "test", "Choose file to write (doesn't really write anything):", "")
  16. k3d.ui.message("You chose " + result)
  17.  
  18.