Newt Syrup

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Newt Syrup
Original author(s) Darryl L. Pierce, Red Hat engineer
Initial release 2009
Stable release 0.2.0 / August 6, 2010; 4 years ago (2010-08-06)
Development status old fashioned, but in use
Written in Python
Operating system Linux, Cross-platform
Type Widget toolkit
License GNU Lesser General Public License
Website Newt Syrup page on Fedora

Newt Syrup is an application framework written in Python that uses the Newt widgets for creating the user interface. It allows programmers to easily write text-based computer programs that can be run on any operating system that has a Python interpreter and is supported by the Newt.

Features[edit]

The framework uses the concept of pages and page flows, where a page represents a single screen of the application and the page flow is based on the data entered by the user.

The main components of an application are the application object, a screen object, and a system of 1 or more pages. The logic for how the application decides which page to show next is separate from the code used to display the data (known as the MVC design pattern, although there is a default flow that moves sequentially through the list of pages in the application.

Example applications[edit]

A text-based version of Virtual Machine Manager was the original application that inspired the framework.