choice

A simple, portable GUI system for Python
Download

choice Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • Frank Huang
  • Publisher web site:
  • http://nongraphical.com/

choice Tags


choice Description

choice is a quick little Python library for getting user input in Python in a dialog-like fashion. Here's a little example:import choice# Get a yes or no response (default is no)confirm = choice.Binary('Are you sure you want to delete?', False).ask()if confirm: deleteIt()# Input an arbitrary value, check for correctnesshowmany = choice.Input('How many pies?', int).ask()print("You ordered {} pies".format(howmany))# Choose from a set of optionsentree = choice.Menu().ask()choice automatically displays the best UI available to the user: basic text console, curses, or GUI windows. (curses and GUI are in development!)Product's homepage


choice Related Software