See https://github.com/Textualize/textual/pull/963#discussion_r1000546514
Personally I prefer the approach I was using in that it's one less bit of
hard-coded metadata. On the other hand I can appreciate that reducing the
number of possibly-confusing things in an example plays better with people
who may be both new to Textual *and* to Python.
Because Textual uses on_ for event handlers there was the danger of a name
clash; so to keep things as clear as possible this renames anything to do
with "on" (method names, properties, style classes) so that it talks about
"filled" instead.
See https://github.com/Textualize/textual/pull/963#discussion_r1000544563
It had been suggested to me that these would be needed, but in testing here
I'm not seeing that. So, until I find out otherwise, let's simplify things
and drop that.
Originally I was doing everything in the DOM, using just the primitive
widgets. Given that I recently created an actual GameCell widget (which
simply inherits from a Button, but still...) it makes sense to now have
row/col properties as part of that.
Don't ping the terminal bell on every key-press. This might be okay on some
systems, on others (we're looking at you Windows) it's a wee bit
distracting.
See #955.
* Move focusing logic to the Screen level
* Update tests to support per-screen focus management
* Some additional key name replacements
* Improve rendering of bindings in footer when multiple items have same action
* Clean up footer, allow key_displays csv
* Prevent exception when widget is not in screen
* Initial layout guide stuff
* More docs on layout - grid
* Continuing grid docs
* Grid gutter and spans guide
* Improvements to layout docs for horizontal, vertical, dock, and begin describing layers
* Update center layout example to reflect new yield order
* More updates to layout guide, mostly offset stuff
* More layout guide, "Putting it all together"
* Updates to layout guide page
* Small rewording of dock layout in guide
* Apostrophe
* Typo
* Small design tweak to combining layouts example
* Typos, tidying up
* Small reword
* Some updates to docs/guide/layout/grid
* calc fix
Co-authored-by: Will McGugan <willmcgugan@gmail.com>