Commit Graph

3817 Commits

Author SHA1 Message Date
Dave Pearson
b8727a8908 Merge branch 'main' into tree-node-label-prop 2023-01-05 14:30:42 +00:00
Dave Pearson
18eae615cc Remove unnecessary return from label.setter
Python is expressive, but it ain't that expressive.
2023-01-05 14:26:45 +00:00
Will McGugan
6cfad7c4b3 Merge pull request #1466 from Textualize/sleep-tweak
don't sleep small intervals
2023-01-05 04:17:23 -08:00
Will McGugan
3be8f799c4 add constant 2023-01-05 12:07:42 +00:00
Will McGugan
89667b2231 Merge branch 'main' into sleep-tweak 2023-01-05 03:56:19 -08:00
Will McGugan
0a35013696 Merge pull request #1458 from nitzan-shaked/mouse-events
MouseScrollUp/MouseScrollDown => plain MousEvent's
2023-01-05 03:41:09 -08:00
Will McGugan
9a4d61ac60 black 2023-01-05 11:34:07 +00:00
Will McGugan
5083cc188f Merge branch 'main' into mouse-events 2023-01-05 11:33:45 +00:00
Will McGugan
1465063b71 changelog 2023-01-05 11:33:16 +00:00
Will McGugan
d5c8516ee7 refactor for readability 2023-01-05 11:30:20 +00:00
Dave Pearson
d39c59c414 Move the TreeNode label tests into a better-named file
There's going to be a whole bunch of tests relating to the Tree and TreeNode
coming, let's make sure this ends up being fairly granular.

(side thought: it might be a good time soon to revisit all the tests for
Textual and try and wrangle them into some tidy structure)
2023-01-05 10:01:52 +00:00
Dave Pearson
b8a329638e Add public access to a TreeNode's label
This adds public support to reading a TreeNode's label, and also setting it
too.

See #1396.
2023-01-05 09:37:08 +00:00
Dave Pearson
a1e63a1c02 Process the label on construction of a TreeNode
Currently there's an asymmetry in how the label is handled for a TreeNode.
If a str label is passed to the constructor it stays as a str type. On the
other hand, if it's set via set_label, it gets processed into a Rich Text
type. This commit removes that asymmetry.
2023-01-05 09:21:52 +00:00
Will McGugan
aaad1a310a Merge pull request #1476 from Ch00k/patch-1
Fix typo
2023-01-04 02:44:08 -08:00
Andrii Yurchuk
fa07802468 Fix typo 2023-01-04 11:42:38 +01:00
Nitzan Shaked
67d2c8df7d black 2023-01-02 21:59:33 +02:00
Nitzan Shaked
0b249bdca2 fix PR comments 2023-01-02 21:19:20 +02:00
Nitzan Shaked
e13ea5e0bd MouseScrollUp/MouseScrollDown => plain MousEvent's
... which means they get passesd x, y, etc. In particular,
they are passed the keyboard modifiers. This allows widgets
to use e.g. ctrl-wheel to scroll right/left.
2023-01-02 21:13:56 +02:00
Will McGugan
273a7e4be3 renamed to match stdlib 2023-01-02 16:36:03 +00:00
Will McGugan
6c31c0850e more defensive sleep 2023-01-02 16:33:14 +00:00
Will McGugan
8da3454a50 lock 2023-01-02 14:08:08 +00:00
Will McGugan
dc0ec3e737 black 2023-01-02 13:56:52 +00:00
Will McGugan
7fd1baf83d comments 2023-01-02 13:49:06 +00:00
Will McGugan
8b96013739 don't sleep small intervals 2023-01-02 12:03:49 +00:00
Will McGugan
a33d87d3d4 Merge branch 'main' of github.com:Textualize/textual 2023-01-01 22:28:14 -08:00
Will McGugan
31e066d488 win sleep refinements 2023-01-01 22:28:05 -08:00
Will McGugan
f8aa18a953 typo 2022-12-31 22:27:57 +00:00
Will McGugan
4cf3aeffa1 Merge pull request #1457 from Textualize/win-sleep
Win sleep
v0.9.1
2022-12-30 09:37:53 -08:00
Will McGugan
91e23ff34c more pauses for demo? 2022-12-30 17:31:36 +00:00
Will McGugan
d0529aebd8 no need for manual reset 2022-12-30 17:22:47 +00:00
Will McGugan
231fa21251 fix win sleep 2022-12-30 17:18:50 +00:00
Will McGugan
29e5f764ac fix for winsleep 2022-12-30 17:00:38 +00:00
Will McGugan
97627107cf add pause 2022-12-30 15:01:57 +00:00
Will McGugan
619ba5f2fd docstring 2022-12-30 14:51:05 +00:00
Will McGugan
efa16e2ab0 changelog 2022-12-30 14:48:05 +00:00
Will McGugan
e764e6757f remove ctypes 2022-12-30 14:45:28 +00:00
Will McGugan
24d92d18c7 version bump 2022-12-30 14:40:09 +00:00
Will McGugan
7361cc8723 sleep 2022-12-30 14:37:49 +00:00
Will McGugan
c261894373 Merge pull request #1455 from Textualize/bump-rich-dependency
version bump
v0.9.0
2022-12-30 05:24:01 -08:00
Will McGugan
f53c46c650 changelog 2022-12-30 13:07:19 +00:00
Will McGugan
43fc53b68e version bump 2022-12-30 12:44:19 +00:00
Will McGugan
0de0b19a33 Merge pull request #1454 from davep/typo-squish
Squish a couple of typos in the Windows speedup blog post
2022-12-30 04:37:01 -08:00
Will McGugan
0ec1a4a5d6 fix post 2022-12-30 12:27:08 +00:00
Dave Pearson
e44baad1c9 Squish a couple of typos in the Windows speedup blog post 2022-12-30 12:24:01 +00:00
Will McGugan
d9a229ff0f typos 2022-12-30 09:54:32 +00:00
Will McGugan
911925fb75 typo 2022-12-30 09:47:40 +00:00
Will McGugan
34f86f48c9 Merge pull request #1444 from Textualize/strip-optimization
adds Strip primitive
2022-12-30 01:40:28 -08:00
Will McGugan
734b742c69 Added link 2022-12-30 09:33:31 +00:00
Will McGugan
51cfa23c27 docstring 2022-12-29 21:43:15 +00:00
Will McGugan
7fa289a332 better sleep 2022-12-29 20:41:14 +00:00