Comments (2)
Testing with a standalone bit of code:
from textual.app import App, ComposeResult
from textual.binding import Binding
from textual.containers import Horizontal, Vertical
from textual.widgets import Header, Footer, TabbedContent, TabPane, Tabs, Label
class StandardTabs( Vertical ):
def compose( self ) -> ComposeResult:
with TabbedContent():
for n in range( 10 ):
with TabPane( f"Tab {n}" ):
yield Label( f"This is tab {n}" )
class SelfSwitchTabs( StandardTabs ):
BINDINGS = [
Binding( "a", "previous", "Previous" ),
Binding( "d", "next", "Next" ),
]
def action_previous(self) -> None:
self.query_one(Tabs).action_previous_tab()
def action_next(self) -> None:
self.query_one(Tabs).action_next_tab()
class TabbedContentTesterApp( App[ None ] ):
CSS = """
StandardTabs:focus-within {
background: $panel;
}
"""
def compose( self ) -> ComposeResult:
yield Header()
with Horizontal():
yield StandardTabs()
yield SelfSwitchTabs()
yield Footer()
if __name__ == "__main__":
TabbedContentTesterApp().run()
and I don't obviously see any sort of issue; using the Tabs
itself vs using other bindings to call into the Tabs
via its actions doesn't seem to make any difference. Both look the same speed.
from frogmouth.
Handled by some improvements to Textual, and a slightly change to how/when focus is settled on a navigation pane in the application itself.
from frogmouth.
Related Issues (20)
- No module named 'frogmouth' HOT 12
- Potential LaTeX rendering support HOT 1
- update textual dependence HOT 3
- Bug: The local filesystem tree is doubling up on entries HOT 3
- Unable to open relative images / resources when md file is not in current dir HOT 4
- Feature request: option for decorations HOT 4
- Feature Request: colorize code blocks via user defined application HOT 1
- Feature Request: browse any link HOT 1
- Feature Request: open readmes automagically HOT 1
- Style review needed for bookmarks and history (at the very least)
- Doesn't render collapsible headers HOT 3
- Feature request: Support reStructuredText HOT 2
- “Error loading the local document” HOT 3
- Add a last-ditch attempt to see if there's an md file on the end of a URL
- Ability to configure browser to open links HOT 2
- Support HTML HOT 2
- Support env-variable FROGMOUT_CFG_FILE to set the config-location
- Feature Request: Option to hide header on the navigation pane
- Crash when wikilink in heading HOT 6
- Inner-document links not working
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 frogmouth.