Commit Graph

2954 Commits

Author SHA1 Message Date
Will McGugan
d37c5ed3da test fix for windows 2022-10-31 13:53:45 +00:00
Will McGugan
586ff470c5 Merge branch 'main' into fix-texlog-maxlines 2022-10-31 13:38:55 +00:00
Will McGugan
0d99b0ccd1 Merge pull request #1067 from Textualize/fr-unit
Fr unit
2022-10-31 13:37:00 +00:00
Will McGugan
881a9c2752 Merge pull request #1061 from Textualize/horizontal-fix
allow waiting of screen operations
2022-10-31 13:36:46 +00:00
Will McGugan
c0c03e8d99 Merge pull request #1039 from Textualize/unmount
unmount event
2022-10-31 13:36:30 +00:00
Will McGugan
07dced3435 Update tests/test_unmount.py
Co-authored-by: darrenburns <darrenburns@users.noreply.github.com>
2022-10-31 13:31:10 +00:00
Will McGugan
5cb5dd8599 Merge branch 'main' into unmount 2022-10-31 13:30:58 +00:00
Will McGugan
4bce8317c7 Update src/textual/app.py
Co-authored-by: darrenburns <darrenburns@users.noreply.github.com>
2022-10-31 13:28:57 +00:00
Will McGugan
7b31f63202 Merge pull request #1016 from Textualize/python311
Add Python 3.11 to CI, update install-poetry action
2022-10-31 13:23:12 +00:00
Dave Pearson
dcf1784676 Merge pull request #1017 from UriyaHarpeness/feature/fix-some-inaccuracies-in-the-tutorial
Fix some inaccuracies in the tutorial.
2022-10-31 13:11:02 +00:00
Will McGugan
8c7bc0aca5 Merge pull request #1069 from Textualize/bump-dependencies
relax dependencies
2022-10-31 13:06:05 +00:00
Will McGugan
40a205f5d0 Merge pull request #1014 from Textualize/reactive-always-update
Reactive `always_update`
2022-10-31 13:05:35 +00:00
Darren Burns
47c5a22b31 Docs change, as per code review request 2022-10-31 12:43:30 +00:00
Dave Pearson
aac9d874b4 Merge pull request #1070 from davep/monkey-patch-argv
Change the way that `textual run` does the argv monkey-patch
2022-10-31 12:14:15 +00:00
Dave Pearson
c391681b3d Ensure we patch the same instance of argv 2022-10-31 12:03:32 +00:00
Will McGugan
acda0fa8af update snok install poetry 2022-10-31 11:45:01 +00:00
Dave Pearson
26f31cfbe6 Change the way that textual run does the argv monkey-patch
A `textual run` already made an attempt to monkey-patch `argv` so that the
application being run would not see an `argv` any differently to how it
would if it had been run "vanilla". However, it could be caught out by code
like:

    from sys import argv

    ...

    do_something_with( argv )

beforehand it was okay with:

    import sys

    ...

    do_something_with( sys.argv )

With this change it should work both ways.

Somewhat related to #1064.
2022-10-31 11:45:01 +00:00
Will McGugan
02c947985e bump poetry 2022-10-31 11:43:24 +00:00
Will McGugan
fab60894b6 relax dependencies 2022-10-31 11:30:55 +00:00
Will McGugan
ff21a51689 rename var 2022-10-31 11:05:31 +00:00
Will McGugan
9b9d58f716 fix issue with maxlines and textlog 2022-10-31 11:03:34 +00:00
Will McGugan
c705752352 38 fix 2022-10-31 10:22:31 +00:00
Will McGugan
2e98c21343 Merge pull request #1066 from davep/cosmetic/1060/app-title
Keep the app title in the middle of the screen, regardless of clock state
2022-10-31 10:20:50 +00:00
Will McGugan
0a02324309 renamed test 2022-10-31 10:18:09 +00:00
Will McGugan
c4ad6b93fd docstrings 2022-10-31 10:11:24 +00:00
Will McGugan
4524e6dd30 Refactor of fr units 2022-10-31 10:09:08 +00:00
Dave Pearson
ec44edf19c Remove vestigial test code
While trying a couple of approaches to fixing #1060 I experimented with
using layers, but forgot to roll back that code.
2022-10-31 10:06:39 +00:00
Dave Pearson
6bdeba894c Update header-related snapshot
The underlying snapshot is different in content, but not in effect, which is
by design. See #1060.
2022-10-31 10:00:45 +00:00
Dave Pearson
8946421b3a Ensure the app title is in the centre of the terminal
While the app title is always centred, there was an issue where the clock
being visible or invisible would throw off this centralisation. This
addresses that by keeping the space used by the clock, but simply not
showing the clock.

See #1060.
2022-10-31 09:55:39 +00:00
Will McGugan
170be7eb2a allow waiting of screen operations 2022-10-30 15:24:48 +00:00
Will McGugan
cfd5d532dd test for unmount 2022-10-30 08:43:23 +00:00
Will McGugan
02658dedd2 remove delay 2022-10-29 21:32:20 +01:00
Will McGugan
f95a61c115 remove import 2022-10-29 21:30:02 +01:00
Will McGugan
6b075399a0 update changelog 2022-10-29 21:16:22 +01:00
Will McGugan
dcbe88833f posssible speedup of screenshots 2022-10-29 21:14:01 +01:00
Will McGugan
c5b2e6982e pass size as a parameter 2022-10-29 21:09:16 +01:00
Will McGugan
39dced58e0 Merge pull request #1037 from Textualize/code-browser-improvements
Focus the directory tree in code browser example
2022-10-29 20:39:56 +01:00
Will McGugan
2092d42bbf more typing 2022-10-29 20:21:25 +01:00
Will McGugan
ce3abe5b9c Merge pull request #995 from davep/demo-screenshot-name
Extend set of handled reserved characters for screenshots
2022-10-29 20:06:27 +01:00
Will McGugan
1ba349b02c Merge pull request #1008 from davep/query-tests
Extend unit tests for CSS query
2022-10-29 20:05:34 +01:00
Will McGugan
0d534dfc36 Merge pull request #1043 from davep/5x5-css-typo
Fix spelling mistake in 5x5 CSS
2022-10-29 19:57:59 +01:00
Will McGugan
9f88f9e3eb remove sandbox 2022-10-29 19:55:54 +01:00
Will McGugan
5b9bb575f0 words 2022-10-29 14:46:15 +01:00
Will McGugan
deb00c21e8 added pilot to docs 2022-10-29 13:44:05 +01:00
Will McGugan
12c553d195 shutdown scrollbas 2022-10-29 13:29:32 +01:00
Will McGugan
2afb00f5b3 test fix 2022-10-29 11:44:31 +01:00
Will McGugan
264b4fe733 run test context manager 2022-10-29 10:53:50 +01:00
Will McGugan
269ff4883e test fix 2022-10-29 10:03:26 +01:00
Dave Pearson
506de4719e Merge pull request #1019 from typon/fix-datatable-example
Fixed data_table example app - actually run it
2022-10-29 08:33:36 +01:00
Dave Pearson
b6c9f12e94 Merge pull request #990 from 1ace/directory-tee-fix-folder
DirectoryTree: remove example code as examples/code_browser.py already covers that
2022-10-29 08:33:10 +01:00