Comments (2)
Textual isn't quite ready to build things just yet. There's more work to be done on the API, and nothing is documented.
Haven't tackled replacing views yet, but there will be a history-like stack and back function.
Handling keys goes something like this:
def on_key(self, event: event.Key):
await self.dispatch_key(event)
def key_up(self, event: event.Key):
await self.move(-1)
The focused widget will get key events.
Have a look at _scroll_view.py for examples of key handling.
from textual.
I realize that textual isn't ready yet, what I'm building is nothing serious. I'm a huge fan of rich, and textual has the same feeling. The work you've done up until now looks amazing!
About the views, I was wondering if it was going to be like that. I'm a pure backend developer kind of guy, so I'm a bit out of my element here, yet this feels like a modern web interface framework like vue or react.
Thanks!
from textual.
Related Issues (20)
- Colour background of widget not rendering correctly HOT 1
- Upcoming deprecation (+ breakage in your case) regarding custom templates for mkdocstrings HOT 6
- Improve the `ListView` documentation by explaining the `ListItem` HOT 3
- Mounting of `Markdown` isn't reliably awaitable HOT 3
- Make `cursor_location` a reactive attribute HOT 4
- Unfocusing and refocusing the terminal has undesirable scrolling behaviour HOT 2
- Giving focus to a widget not scrolled into view doesn't always scroll it into view HOT 6
- SelectionList weird behavior when removing options in its own event handler until freeze HOT 2
- Strange column width behaviour when updating `DataTable` on `*Selected` event HOT 3
- Add information about ToastRack styling to the toast widget documentation HOT 2
- False Information: Mayday Release HOT 3
- Applying a RegexHighlighter with a dfeined Theme to a Log HOT 1
- Adding global event handlers directly from the widget HOT 2
- The introduction to `query_one` is potentially misleading HOT 2
- Clicking `Select` doesn't properly collapse overlay HOT 5
- Could not find a version that satisfies the requirement textual (from versions: ) HOT 1
- Add the ability to customise scrollbar bar segments HOT 7
- Can i do chart using sparkline? HOT 1
- Auto width results in zero-width when applied to `OptionList` HOT 2
- Footer in ModalScreen lists ignored App keybindings HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from textual.