Skip to content

Adding and accessing a Settable when a dynamic CommandSet is added. #1298

Answered by roboknight
roboknight asked this question in Q&A
Discussion options

You must be logged in to vote

Found out how to do this a different way. Though I wish there had been an example where you load a command set, and on load it hides commands it isn't ready for yet, then after an "init" command is run, unhides commands. But, eventually I got that worked out. Especially the fact that if you write your own on_register command, you really SHOULD call the super's on_register, otherwise commandset's self._cmd isn't set properly.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by roboknight
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant