added question

This commit is contained in:
Will McGugan
2023-01-05 21:06:30 +00:00
parent 6cfad7c4b3
commit ad70de5e87
2 changed files with 26 additions and 0 deletions

12
FAQ.md
View File

@@ -1,6 +1,7 @@
# Frequently Asked Questions # Frequently Asked Questions
- [Does Textual support images?](#does-textual-support-images) - [Does Textual support images?](#does-textual-support-images)
- [How can I fix ImportError cannot import name ComposeResult from textual.app ?](#how-can-i-fix-importerror-cannot-import-name-composeresult-from-textualapp-)
- [How do I center a widget in a screen?](#how-do-i-center-a-widget-in-a-screen) - [How do I center a widget in a screen?](#how-do-i-center-a-widget-in-a-screen)
- [How do I pass arguments to an app?](#how-do-i-pass-arguments-to-an-app) - [How do I pass arguments to an app?](#how-do-i-pass-arguments-to-an-app)
@@ -11,6 +12,17 @@ Textual doesn't have built in support for images yet, but it is on the [Roadmap]
See also the [rich-pixels](https://github.com/darrenburns/rich-pixels) project for a Rich renderable for images that works with Textual. See also the [rich-pixels](https://github.com/darrenburns/rich-pixels) project for a Rich renderable for images that works with Textual.
<a name="how-can-i-fix-importerror-cannot-import-name-composeresult-from-textualapp-"></a>
## How can I fix ImportError cannot import name ComposeResult from textual.app ?
You likely have an older version of Textual. You can install the latest version by adding the `-U` switch which will force pip to upgrade.
The following should do it:
```
pip install "textual[dev]" -U
```
<a name="how-do-i-center-a-widget-in-a-screen"></a> <a name="how-do-i-center-a-widget-in-a-screen"></a>
## How do I center a widget in a screen? ## How do I center a widget in a screen?

View File

@@ -0,0 +1,14 @@
---
title: "How can I fix ImportError cannot import name ComposeResult from textual.app ?"
alt_titles:
- "Can't import ComposeResult"
- "Error about missing ComposeResult from textual.app"
---
You likely have an older version of Textual. You can install the latest version by adding the `-U` switch which will force pip to upgrade.
The following should do it:
```
pip install "textual[dev]" -U
```