-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Formal editor interface for tooltips #1493
Conversation
Co-authored-by: Poruri Sai Rahul <rporuri@enthought.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly LGTM with a few comments/questions.
There are strategic code-generation reasons why I want this done, ...
Can you elaborate on what you mean by "strategic code-generation reasons"? I have no clue what you're referring to.
|
||
Returns | ||
------- | ||
tooltip_set : bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont understand why set_tooltip
returns a boolean and i'm not sure where/who users the return value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did check: it is used. Not sure what for, I didn't dig in.
"Code-generation" was bad phrasing: what I'm particularly interested in is that code like UIEditors, CodeEditor, and PythonShell which aren't simple wrappers around a toolkit control, but rather wrap TraitsUI or Pyface objects, we still have to have toolkit-specific classes (which in some cases like So "strategically supporting new editor generation" is probably better. But as I said, this should be evaluated independently: there is an API that is implemented everywhere, we should raise it up and make it formal. |
I should add: at some point I may make a similar PR about sizing, as there is an interface there that should be made common and formal, but I haven't looked into it. |
…raitsui into enh/editor-interface-tooltip
This is a refactor/cleanup that does a number of things:
Editor
interface. Previously these were supplied by the base toolkit implementations of the Editor classes, so they were there but not documented.set_tooltip
a method on the baseEditor
class, removing all duplicated codeThere are strategic code-generation reasons why I want this done, but hopefully it is useful enough to stand as a clean-up action.