Use new pyface toolkit#641
Conversation
- Also adding pygments as most folks use Mayavi with the Qt backend which depends on it.
- Some PEP8 fixes. - Remove useless early wxPython imports.
Codecov Report
@@ Coverage Diff @@
## master #641 +/- ##
==========================================
+ Coverage 50.41% 50.46% +0.04%
==========================================
Files 257 257
Lines 23415 23327 -88
Branches 3194 3180 -14
==========================================
- Hits 11804 11771 -33
+ Misses 10850 10801 -49
+ Partials 761 755 -6
Continue to review full report at Codecov.
|
|
On a quick look-over, I think you should explicitly attempt to import It is suboptimal that importing I'll have a closer look tomorrow morning. |
|
Hmm, it seems to work fine as is, the tests pass. Since Mayavi is using traitsui shouldn't it be enough that traitsui will perform the necessary imports? |
|
@corranwebster -- please let me know if this looks OK. Thanks! |
|
It's probably fine, assuming that you can't use Mayavi without bringing in TraitsUI at some point in the process. |
|
Thank you! Yes indeed when we do use a UI, we use traitsui. When we don't want a UI we don't want the Qt or wx app to be created anyway. So I think it should be fine. |
Fixes #626.
@corranwebster -- could you please take a look at this PR, the pyface toolkit related bits especially to see if I haven't done anything wrong. Thanks! BTW, the changes for the pyface toolkit are all in the first commit.