Comments (4)
Thank you for your issue. Give us a little time to review it.
PS. You might want to check the FAQ if you haven't done so already.
This is an automated reply, generated by FAQtory
from textual.
I suspect what you are seeing is that by the time the event is received, the state has change.
The StateChange
event has a state
property that contains the state when the event was posted. If you log that, you may find it works as expected.
from textual.
I appreciate the quick response. This was exactly what I was looking for. I realize now that when I set worker_state = event.worker.state
, it was referencing the worker itself. Because that takes time, there is no guarantee that it will be the state advertised in the event. Thanks!
from textual.
Don't forget to star the repository!
Follow @textualizeio for Textual updates.
from textual.
Related Issues (20)
- 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
- Command palette glitch HOT 5
- Command palette cancel HOT 3
- Change command palette key HOT 5
- Watch Highlander for the first time HOT 5
- Make tooltip timer confugrable HOT 2
- Pytest gets stuck when testing app with dynamically mounting animated widgets on timer HOT 5
- v0.76.0 breaks buttons with emojis HOT 7
- self test problems HOT 6
- Investigate flaky `test_command_palette_dismiss_escape_no_results` snapshot test HOT 3
- Inline mode doesn't show CSS errors HOT 1
- Extraneous padding when using inline mode HOT 7
- InvalidStateError when dismissing Screen HOT 5
- Mouse enter in a child widget triggers Leave event in parent HOT 4
- `COMMAND_PALETTE_BINDING` doesn't change the binding
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.