Npyscreen

Latest version: v4.10.5

Safety actively analyzes 625831 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 8 of 12

2.0pre13

Comboxbox made more useful. There is now a method, similar to the multiline class which controls how the values of the comboxbox are to be displayed. This makes it into a good base class to display many types of objects.

Removed the try: except: in the keypress handling routines to remove a possibility of masking exceptions in user code.

2.0pre12

The Multiline class (and so all its derived classes) now has the method display_value(vl). This should be overloaded to affect how objects are displayed. Previously, the object expected self.values to be a list of strings, and printed them straight to the screen. This new method allows greater flexibility and should simplify coding for the end user, at the cost of a small amount of overhead.

2.0pre11

Added new ActionForm class. This has an ok and a cancel button, with methods to overload for each.

while_editing method is now passed a weakref to the currently selected widget.

Added the adjust_widgets method to Form classes and widget editing.
Added system to hide widgets.
Fixed some bugs in the editmultiline widget.
Fixed minor bug in Widget class editing function that was affecting the
Checkbox class.
Fixed bug in the MultiSelect class when fast scrolling.

Changed default menu key from ^D to ^X

2.0pre10

Added the TitleMultiLineFixed and MultiLineFixed classes.

2.0pre9

Popup type added. More a convenience type than anything else. But prompted lots of cleanups / bug-fixes. Form types now properly respect the lines/column sizes specified on creation - these now override anything else specified. Several fixes to do with widgets calculating the size of the screen. Note that the Popup class is more of a convenience than anything else at the moment - it is simply a Form object that is a small size and set to display at a particular place on the screen.

Auto-complete types now use a popup window, not a fullscreen one.

Function keys on OS X and meta-keys on OS X seem broken due to python's curses module. No way to fix at this time. Write programs using control modifier only.

Look of slider widget changed. Now works better on OS X (where CKBOARD never looked right).

Menu class added.

Popup menu system also includes an automatic "root" menu, which is bound to ^D by default. This displays a list of any popup menus currently defined for a given form, along with a note of their keybindings. Finding a good binding for this function is difficult. ^M is already taken by the terminal. ^E is awkward, and in any case is a favourite of unix-types for other things. ^N and ^U are also already taken for other things. ^D falls right under the fingers, at least.

EXAMPLE updated to show off the package's new features.

NB (Developer) this popup system may have introduced the possibility of circular references.

2.0pre8

Had lots of problems with OS X. Seems that the standard ncurses
library has problems on OSX - screen resizing not properly
reported/detected.

Fixed by non-apple builds of curses/python. However, still getting
some crashes on refresh() calls that seem to be related to screen
size, which seems to be sometimes improperly reported. Fixed with a
try: loop in screen_area. It's the first truly horrid hack that I
can remember putting in in a while, but it seems to have no ill
effects and to solve the problem.

Page 8 of 12

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.