Newt (programming library)

Newt (programming library)
Newt
Partimage.png
Partimage tool that uses Newt to create its user interface
Original author(s) Erik Troan, Red Hat engineer
Stable release 0.52.12 / August 6, 2010; 14 months ago (2010-08-06)
Development status old fashioned, but in use
Written in C
Operating system Linux, Cross-platform (Live CD)
Size about 850 Kb when installed on i686 platform.
Type Widget toolkit
License GNU Lesser General Public License
Website Newt page on Fedora

Newt is a programming library for color text mode, widget-based user interfaces. Newt can be used to add stacked windows, entry widgets, checkboxes, radio buttons, labels, plain text fields, scrollbars, etc., to text user interfaces. This package also contains the shared library needed by programs built with newt, as well as an application whiptail, which provides the most commonly used features of dialog. Newt is based on the slang library. It abbreviates from Not Erik's Windowing Toolkit.

Contents

Features

Newt was originally designed for use in the install code of the Red Hat Linux and is written mostly focusing in very clear interface, simplicity and small footprint[1]. Because of that, unlike the most of recent GUI engines, it does not use the event-driven architecture. The windows must be created and destroyed as a stack (the order of discarding is exactly opposite order to the order of creation). The top level window is always modal. Many behaviours, such as widget traversal order, are difficult or impossible to change.

These restrictions simplify the design of the library as well as the code of programs using it, though they impose limitations on user interface design.

Usage

The capabilities are fully adequate for the installation process, and Newt was used for the user friendly OS installers. It is also used in some system tools (like Partimage) that focus more on functionality than on looking attractive to the end user.

Interoperability

Newt is written in C. However there are bindings to other languages.

Variants

gNewt project (no longer active) provides an alternative implementation that uses GTK instead of the text based interface. It is fully compatible with the official Newt implementation and can be replaced at run time, without recompilation. Like any other GTK components, gNewt controls can also use mouse input when the original Newt only supports the keyboard.

See also

References

  1. ^ Newt tutorial

External links


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • Newt (disambiguation) — A newt is an amphibian. Newt can also refer to: Newt Allen (1901–1988), an American baseball player Newt Gingrich (born 1943), an American politician and former Speaker of the House Newt Hall (1873–?), an American Marine Corps officer who served… …   Wikipedia

  • Python-newt — is a text mode user interface builder for the Python programming language using the Newt programming library. The Python extension used to do this is called Snack.External links* [http://www.wanware.com/tsgdocs/snack.html Quick Guide to Python s… …   Wikipedia

  • Environnement en mode texte — Un environnement en mode texte (TUI, de l anglais « Text User Interface », « Textual User Interface » ou encore «Terminal User Interface » est un rétronyme introduit dans le jargon informatique après l invention des… …   Wikipédia en Français

  • National Empowerment Television — (NET), also known as America s Voice, was a cable TV network designed to rapidly mobilize conservative followers for grassroots lobbying. It was created by Paul Weyrich, a key strategist for the paleoconservative movement. At its peak, it claimed …   Wikipedia

  • Media and Publishing — ▪ 2007 Introduction The Frankfurt Book Fair enjoyed a record number of exhibitors, and the distribution of free newspapers surged. TV broadcasters experimented with ways of engaging their audience via the Internet; mobile TV grew; magazine… …   Universalium

  • United States — a republic in the N Western Hemisphere comprising 48 conterminous states, the District of Columbia, and Alaska in North America, and Hawaii in the N Pacific. 267,954,767; conterminous United States, 3,022,387 sq. mi. (7,827,982 sq. km); with… …   Universalium

  • Harrisburg, Pennsylvania — Harrisburg redirects here. For other uses, see Harrisburg (disambiguation). Harrisburg   City   City of Harrisburg …   Wikipedia

  • Nelvana — This article is about the entertainment company. For the female superhero, see Nelvana of the Northern Lights. Nelvana Limited Type Subsidiary of Corus Entertainment Industry …   Wikipedia

  • News Corporation — Type Public Traded as NASDAQ: NWS …   Wikipedia

  • Portal:United States — Wikipedia portals: Culture Geography Health History Mathematics Natural sciences People Philosophy Religion Society Technology …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”