Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vtr0n/npyscreen
Fork from https://code.google.com/archive/p/npyscreen/
https://github.com/vtr0n/npyscreen
npyscreen python tui
Last synced: 2 months ago
JSON representation
Fork from https://code.google.com/archive/p/npyscreen/
- Host: GitHub
- URL: https://github.com/vtr0n/npyscreen
- Owner: vtr0n
- License: other
- Created: 2018-03-07T10:11:50.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-23T19:19:10.000Z (almost 7 years ago)
- Last Synced: 2024-08-01T22:55:37.858Z (5 months ago)
- Topics: npyscreen, python, tui
- Language: Python
- Size: 148 KB
- Stars: 120
- Watchers: 5
- Forks: 16
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
Awesome Lists containing this project
README
# NpyScreen
Fork from https://code.google.com/archive/p/npyscreen/## Changes
Added custom highlighting for widget and multiline
Example:
```python
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()```