Clone or download
Latest commit ed9a0a6 Mar 19, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs source codes added Mar 7, 2018
npyscreen undefined names fixed Mar 19, 2018
.gitignore updated .gitignore Mar 17, 2018
CHANGELOG source codes added Mar 7, 2018
EXAMPLE-BOX.py source codes added Mar 7, 2018
EXAMPLE-BoWTheme.py source codes added Mar 7, 2018
EXAMPLE-Colourful.py source codes added Mar 7, 2018
EXAMPLE-ManagedApp.py source codes added Mar 7, 2018
EXAMPLE-Menus.py source codes added Mar 7, 2018
EXAMPLE-MultilineEditable.py source codes added Mar 7, 2018
EXAMPLE-OptionList.py source codes added Mar 7, 2018
EXAMPLE-ThemeTransparent.py source codes added Mar 7, 2018
EXAMPLE-WIDGETLIST.py undefined names fixed Mar 19, 2018
EXAMPLE-address-book.py source codes added Mar 7, 2018
EXAMPLE-annotation.py source codes added Mar 7, 2018
EXAMPLE-basic-editor.py source codes added Mar 7, 2018
EXAMPLE-fuller.py source codes added Mar 7, 2018
EXAMPLE-multipage_experimental.py source codes added Mar 7, 2018
EXAMPLE-multiple-screens.py source codes added Mar 7, 2018
EXAMPLE-mutt-like-annotated.py source codes added Mar 7, 2018
EXAMPLE-mutt-like.py source codes added Mar 7, 2018
EXAMPLE-muttactive.py source codes added Mar 7, 2018
EXAMPLE-muttactivetraditional.py source codes added Mar 7, 2018
EXAMPLE-nocolor.py source codes added Mar 7, 2018
EXAMPLE-unicode-py3.py source codes added Mar 7, 2018
EXAMPLE-unicode.py source codes added Mar 7, 2018
EXAMPLE-waiting.py source codes added Mar 7, 2018
EXAMPLE.py source codes added Mar 7, 2018
LICENCE source codes added Mar 7, 2018
PKG-INFO source codes added Mar 7, 2018
README.md updated readme Mar 17, 2018
setup.py source codes added Mar 7, 2018

README.md

NpyScreen

Fork from https://code.google.com/archive/p/npyscreen/

Changes

Added custom highlighting for widget and multiline
Example:

import npyscreen
class MyForm(npyscreen.FormBaseNew):
    def create(self):
        # BoxTitle used multiline
        obj = self.add(npyscreen.BoxTitle, name="test", custom_highlighting=True, values=["first line", "second line"])
        
        # get colors
        color1 = self.theme_manager.findPair(self, 'DANGER')
        color2 = self.theme_manager.findPair(self, 'IMPORTANT')
        
        # fill line
        obj.entry_widget.highlighting_arr_color_data = [[color1,color1,color2],[color2,color1,color2,color2]]

class App(npyscreen.StandardApp):
    def onStart(self):
        self.addForm("MAIN", MyForm)

obj = App()
obj.run()