forked from Textualize/textual
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tooltips in compound widgets (Textualize#2801)
* tooltips in compound widgets * snapshot tweak * test fixes
- Loading branch information
1 parent
e7531f4
commit bb9cc62
Showing
5 changed files
with
200 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from textual.app import App, ComposeResult | ||
from textual.widgets import ProgressBar | ||
|
||
|
||
class TooltipApp(App[None]): | ||
def compose(self) -> ComposeResult: | ||
progress_bar = ProgressBar(100) | ||
progress_bar.advance(10) | ||
progress_bar.tooltip = "Hello, Tooltip!" | ||
yield progress_bar | ||
|
||
|
||
if __name__ == "__main__": | ||
app = TooltipApp() | ||
app.run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters