Skip to content

Howto build compound widgets? Best Practice Question #4383

Answered by TomJGooding
UlrichGoebel asked this question in Q&A
Discussion options

You must be logged in to vote

What I would like to build:
A class which could used as a widget (in the code it is commented out, but should be Navi and could be used in Tab-4).
As I understand I had to build a subclass of Widget (or Container?). But how? May be it is more a python question then a textual > question. But e.g. how to handle the base_name when initiating Navi?

Could you explain a bit more what part you are struggling with? There's an example of a compound widget in the docs which might be helpful (though I do think perhaps this needs expanding)

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@UlrichGoebel
Comment options

@TomJGooding
Comment options

Answer selected by UlrichGoebel
Comment options

You must be logged in to vote
4 replies
@TomJGooding
Comment options

@UlrichGoebel
Comment options

@TomJGooding
Comment options

@TomJGooding
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants