<p dir="ltr">I'd be open to a ctypes implementation of the tk backend as long as it's fully optional (like the current tk backend) since using ctypes excludes us from use in restricted environments such as Google app engine.</p>
<p dir="ltr">Submitting the buffer hook to tcl/tk and/or tkinter would be nice. All other modern Python GUI frameworks have this feature.</p>
<p dir="ltr">Mike</p>
<br><div class="gmail_quote"><div dir="ltr">On Thu, Apr 28, 2016, 8:45 AM Matthew Brett <<a href="mailto:matthew.brett@gmail.com">matthew.brett@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
On Mon, Apr 25, 2016 at 4:23 PM, Matthew Brett <<a href="mailto:matthew.brett@gmail.com" target="_blank">matthew.brett@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> On Mon, Apr 25, 2016 at 12:42 PM, Olivier Grisel<br>
> <<a href="mailto:olivier.grisel@ensta.org" target="_blank">olivier.grisel@ensta.org</a>> wrote:<br>
>> 2016-04-25 21:19 GMT+02:00 Benjamin Root <<a href="mailto:ben.v.root@gmail.com" target="_blank">ben.v.root@gmail.com</a>>:<br>
>>> What would be better is if we can get rid of the compilation requirement,<br>
>>> but from Michael's comments in the past, it seems that this isn't possible<br>
>>> at the moment. The problem is that the compiled portion provides the image<br>
>>> buffer access, which seems to not be available at the python level. Perhaps<br>
>>> it might make sense to pursue submitting our code to the Tk/Tcl project so<br>
>>> that we might be able to drop this step at some point?<br>
>><br>
>> Wouldn't it be possible to rewrite this part using ctypes instead?<br>
><br>
> I had the same thought - has anyone looked into that?<br>
<br>
I was thinking of looking into this. It would be very useful to<br>
unlink matplotlib from the tk compile. It's already a pain to get<br>
this right for OSX - for the wheel build, we have to download the<br>
activestate tcl/tk, check it's the right version, link to it, and then<br>
make sure we haven't shipped any of it :<br>
<br>
<a href="https://github.com/MacPython/matplotlib-wheels/blob/master/run_install.sh#L5" rel="noreferrer" target="_blank">https://github.com/MacPython/matplotlib-wheels/blob/master/run_install.sh#L5</a><br>
<a href="https://github.com/MacPython/matplotlib-wheels/blob/master/check_tcl.py" rel="noreferrer" target="_blank">https://github.com/MacPython/matplotlib-wheels/blob/master/check_tcl.py</a><br>
<a href="https://github.com/MacPython/matplotlib-wheels/blob/master/mpl_delocate.py" rel="noreferrer" target="_blank">https://github.com/MacPython/matplotlib-wheels/blob/master/mpl_delocate.py</a><br>
<br>
I'm sure it's also annoying on Windows.<br>
<br>
Michael D - are you the right person to ask about this stuff? Do you<br>
have any pointers about where the problems will be?<br>
<br>
Thanks a lot,<br>
<br>
Matthew<br>
</blockquote></div>