Comments (16)
If you have textual installed via pip, you will need to first uninstall it and then install it via Poetry.
Uninstall it with this:
pip uninstall textual
Now cd in to the textual directory and run the following:
poetry install
The bleeding edge version of Textual will now be installed and you can run the examples with the following:
python animation.py
from textual.
Ok @willmcgugan
from textual.
@cole-wilson You can use the version on PyPi just by adding textual to your project. These instructions are so you can try out the latest code before it is released.
@prolomix You will need to get the latest code from the repository (here). You can do this by cloning the repos. Click the code tab above and then the green Code button.
If you have never done this before, see if you can find a guide online.
from textual.
You will need to install via poetry. Do 'pip uninstall textual' then 'poetry install' before running the examples...
from textual.
sorry im kinda new to python so i may be messing something up. i did python3 -m poetry add textual
and now its telling me textual isnt a module. the pyproject.toml
file and poetry.lock
file both add up though
the error is
from textual.app import App
ModuleNotFoundError: No module named 'textual'
from textual.
so i did poetry run python filename.py
and got the initial error TypeError: on_key() takes 1 positional argument but 2 were given
. would appreciate some help on this
from textual.
I am also having trouble with this exact same error. Running python3 -m textual.app
runs the demo just fine, but running the examples failed. I have installed everything with poetry.
from textual.
Ah, okay! I was trying to just do poetry add textual
and then poetry install
in an empty directory. yiur directions work great!
As I understand it however, that will only install textual in a virtual environment for the textual source. Is there a way I can install it globally to use with other projects? I normally don't use poetry, so please forgive me if this is a simple question.
Textual is a really cool project and I'm loving the examples, thank you souch for all the work you put into it!
from textual.
Please help I did what you said but Visual Studio tells me " There is no module called 'textual'."
then I uninstall 'textual' and Now cd into the textual directory and run the following: poetry installs and cmd pop up with an error.
#71
from textual.
I did it and it shows the same
but I run test file and it showed me this:
from textual.
what does this mean
from textual.
Ah. You are running on Windows. Textual is not yet compatible with Windows I'm afraid.
from textual.
When it will be available for windows
from textual.
Can't say for certain, but I would suspect a month or two.
from textual.
@willmcgugan thanks!
from textual.
Did I solve your problem?
Consider sponsoring my work on Textual with a monthly donation.
Or buy me a coffee to say thanks.
from textual.
Related Issues (20)
- Adding a simpler way to bind reactives when dynamically mounting new widgets
- mutate_reactive doesn't work with data binding HOT 5
- mutate_reactive not updating screen (w/ reactive list) HOT 6
- Method to open a URL HOT 1
- Saving / serving a file. HOT 2
- Tree with many nodes + Input + TabbedContent can lead to some nodes not being displayed HOT 5
- Computed methods aren't called from mutate_reactive HOT 5
- slight bug with DataTable's move_cursor method and it's 'scroll' parameter HOT 1
- TabbedContent visuals broken when animations are disabled HOT 1
- Escape being detected and processed as keyboard input while hoovering on buttons under heavy load HOT 10
- AwaitRemove flaky test HOT 1
- Focusing Input widget should not move cursor to the end HOT 3
- mutate_reactive doesn't work with data binding and recompose=False HOT 1
- Serving files
- Documentation errors on CSS Type Selectors HOT 6
- Updating a label with text containing square brackets hides those brackets and the word behind it HOT 4
- v0.75.0 has massive slowdown HOT 5
- ProgressBar: decrease CPU consumption by adjusting Bar.auto_refresh when styles.display is None HOT 3
- Upgrade Textual's tree-sitter version to 0.22.x HOT 7
- `TextArea` scrollbar position is not updated after paste HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from textual.