Skip to content

Add custom_control and custom_page_control variables to override the Qt widgets used by qtconsole#2007

Merged
fperez merged 2 commits into
ipython:masterfrom
ccordoba12:i1920
Jun 25, 2012
Merged

Add custom_control and custom_page_control variables to override the Qt widgets used by qtconsole#2007
fperez merged 2 commits into
ipython:masterfrom
ccordoba12:i1920

Conversation

@ccordoba12
Copy link
Copy Markdown
Member

…Qt widgets used by qtconsole

- This will let other project to easily provide its own widgets
- Try to fix ipython#1920
@ccordoba12
Copy link
Copy Markdown
Member Author

@fperez, I tried this approach in conjunction with Spyder and it works great, letting us easily use our subclass of QTextEdit.

@fperez
Copy link
Copy Markdown
Member

fperez commented Jun 22, 2012

Great, thanks for the report. @jdmarch, @epatters, since Enthought is likely the largest consumer of the Qt code, I'd like to make sure it doesn't cause any headaches for your gang before proceeding further...

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be a callable? control = self.custom_control()

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was planning to use it as: self.custom_control = SpyderControlWidget() but I think you're right. It would better match how you create control in the next line. I'm going to change it.

@jdmarch
Copy link
Copy Markdown

jdmarch commented Jun 24, 2012

Looks fine to me. Handing it on to bleeding edgers for a look as well.

- This better matches how they are normally created
@minrk
Copy link
Copy Markdown
Member

minrk commented Jun 24, 2012

This looks fine to me now, so when we get one more OK from @jdmarch's beeding edgers, it's ready to go.

@fperez
Copy link
Copy Markdown
Member

fperez commented Jun 25, 2012

Targeting for 0.13 then, @jdmarch let us know how things go so we can squeeze this one in before release.

@jdmarch
Copy link
Copy Markdown

jdmarch commented Jun 25, 2012

Got the ok - thanks @punchagan

@fperez
Copy link
Copy Markdown
Member

fperez commented Jun 25, 2012

Great, thanks! Merging now then.

fperez added a commit that referenced this pull request Jun 25, 2012
Add custom_control and custom_page_control variables to override the Qt widgets used by qtconsole. This will let other project to easily provide its own widgets, the work was driven by better Spyder integration with IPython, but can benefit other tools as well.

Closes #1920.
@fperez fperez merged commit 4abd769 into ipython:master Jun 25, 2012
@ccordoba12
Copy link
Copy Markdown
Member Author

Thanks guys for your support and to Enthought guys for giving their OK.

mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
Add custom_control and custom_page_control variables to override the Qt widgets used by qtconsole. This will let other project to easily provide its own widgets, the work was driven by better Spyder integration with IPython, but can benefit other tools as well.

Closes ipython#1920.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide an easy way to override the Qt widget used by qtconsole

4 participants