- Notifications
You must be signed in to change notification settings - Fork 754
Open
Description
Frame formats like this:
┌─| Hello |─┐ │World │ └───────────┘ Is there a straightforward way to draw a frame without the padding round its title?
┌───Hello───┐ │World │ └───────────┘ Code for the above:
from prompt_toolkit.application import Application from prompt_toolkit.layout import Layout, VSplit, Window from prompt_toolkit.key_binding import KeyBindings from prompt_toolkit.key_binding.bindings.named_commands import end_of_file from prompt_toolkit.widgets import Frame, TextArea kb = KeyBindings() kb.add("c-c")(end_of_file) frame = Frame(TextArea(text="World", width=11), title="Hello") root_container = VSplit([frame, Window()]) layout = Layout(root_container) app = Application(layout=layout, key_bindings=kb) app.run()Metadata
Metadata
Assignees
Labels
No labels