<div dir="ltr"><div class="markdown-here-wrapper" style><p style="margin:1.2em 0px!important">Hey Florian,</p>
<p style="margin:1.2em 0px!important">Yeah, I seemed to have copied the end of mail indicator along with his code snippet, and it’s also possible that those of you without support for HTML in emails won’t see any benefit either. How about this?</p>
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code class="hljs language-python" style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;display:inline;background-color:rgb(248,248,248);white-space:pre;overflow:auto;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block!important;display:block;overflow-x:auto;padding:0.5em;color:rgb(51,51,51);background:rgb(248,248,248)"><span class="hljs-function"><span class="hljs-keyword" style="color:rgb(51,51,51);font-weight:bold">def</span> <span class="hljs-title" style="color:rgb(153,0,0);font-weight:bold">toggleVis</span><span class="hljs-params">(self)</span>:</span>
self.results = findChildren((QLabel,QGroupBox))
<span class="hljs-keyword" style="color:rgb(51,51,51);font-weight:bold">print</span> self.results
<span class="hljs-keyword" style="color:rgb(51,51,51);font-weight:bold">for</span> w <span class="hljs-keyword" style="color:rgb(51,51,51);font-weight:bold">in</span> self.results:
w.setVisible(<span class="hljs-keyword" style="color:rgb(51,51,51);font-weight:bold">not</span> w.isVisible())
</code></pre>
<p style="margin:1.2em 0px!important">There’s a few of us using it in the Maya-Python mailing list, for example, here: <a href="https://groups.google.com/forum/#!topic/python_inside_maya/sQ6Tb45CKrw">https://groups.google.com/forum/#!topic/python_inside_maya/sQ6Tb45CKrw</a></p>
<p style="margin:1.2em 0px!important">And it’s quite helpful, especially for lists with lots of code examples. As for attachments, I’d agree, if it wasn’t for the ease of just seeing it in context with the rest of the mail.</p>
<p style="margin:1.2em 0px!important">Anyway, just thought I’d share.</p>
<p style="margin:1.2em 0px!important">Best,<br>Marcus</p>
<div title="MDH:SGV5IEZsb3JpYW4sPGRpdj48YnI+PC9kaXY+PGRpdj5ZZWFoLCBJIHNlZW1lZCB0byBoYXZlIGNv
cGllZCB0aGUgZW5kIG9mIG1haWwgaW5kaWNhdG9yIGFsb25nIHdpdGggaGlzIGNvZGUgc25pcHBl
dCwgYW5kIGl0J3MgYWxzbyBwb3NzaWJsZSB0aGF0IHRob3NlIG9mIHlvdSB3aXRob3V0IHN1cHBv
cnQgZm9yIEhUTUwgaW4gZW1haWxzIHdvbid0IHNlZSBhbnkgYmVuZWZpdCBlaXRoZXIuIEhvdyBh
Ym91dCB0aGlzPzwvZGl2PjxkaXY+PGJyPjwvZGl2PjxkaXY+YGBgcHl0aG9uPC9kaXY+PGRpdj48
ZGl2PmRlZiB0b2dnbGVWaXMoc2VsZik6PC9kaXY+PGRpdj4mbmJzcDsgc2VsZi5yZXN1bHRzID0g
ZmluZENoaWxkcmVuKChRTGFiZWwsUUdyb3VwQm94KSk8L2Rpdj48ZGl2PiZuYnNwOyBwcmludCBz
ZWxmLnJlc3VsdHM8L2Rpdj48ZGl2PiZuYnNwOyBmb3IgdyBpbiBzZWxmLnJlc3VsdHM6PC9kaXY+
PGRpdj4mbmJzcDsgJm5ic3A7IHcuc2V0VmlzaWJsZShub3Qgdy5pc1Zpc2libGUoKSk8L2Rpdj48
L2Rpdj48ZGl2PmBgYDwvZGl2PjxkaXY+PGJyPjwvZGl2PjxkaXY+VGhlcmUncyBhIGZldyBvZiB1
cyB1c2luZyBpdCBpbiB0aGUgTWF5YS1QeXRob24gbWFpbGluZyBsaXN0LCBmb3IgZXhhbXBsZSwg
aGVyZTogaHR0cHM6Ly9ncm91cHMuZ29vZ2xlLmNvbS9mb3J1bS8jIXRvcGljL3B5dGhvbl9pbnNp
ZGVfbWF5YS9zUTZUYjQ1Q0tydzwvZGl2PjxkaXY+PGJyPjwvZGl2PjxkaXY+QW5kIGl0J3MgcXVp
dGUgaGVscGZ1bCwgZXNwZWNpYWxseSBmb3IgbGlzdHMgd2l0aCBsb3RzIG9mIGNvZGUgZXhhbXBs
ZXMuICZuYnNwO0FzIGZvciBhdHRhY2htZW50cywgSSdkIGFncmVlLCBpZiBpdCB3YXNuJ3QgZm9y
IHRoZSBlYXNlIG9mIGp1c3Qgc2VlaW5nIGl0IGluIGNvbnRleHQgd2l0aCB0aGUgcmVzdCBvZiB0
aGUgbWFpbC48L2Rpdj48ZGl2Pjxicj48L2Rpdj48ZGl2PkFueXdheSwganVzdCB0aG91Z2h0IEkn
ZCBzaGFyZS48L2Rpdj48ZGl2Pjxicj48L2Rpdj48ZGl2PkJlc3QsPC9kaXY+PGRpdj5NYXJjdXM8
L2Rpdj4=" style="height:0;font-size:0em;padding:0;margin:0"></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 13 October 2014 21:24, Florian Bruhin <span dir="ltr"><<a href="mailto:me@the-compiler.org" target="_blank">me@the-compiler.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">* Marcus Ottosson <<a href="mailto:konstruktion@gmail.com">konstruktion@gmail.com</a>> [2014-10-13 20:25:46 +0100]:<br>
> Just a small tip, there’s a plug-in for chrome and firefox that does code<br>
> highlighting in emails and google groups.<br>
><br>
> - <a href="http://markdown-here.com/" target="_blank">http://markdown-here.com/</a><br>
><br>
> It looks like this:<br>
><br>
> import sysfrom PyQt4 import QtGui, QtCore<br>
<br>
Either that plugin or your mail client is messing with newlines and<br>
indentation in that code. The best syntax highlighting won't help if<br>
the code is broken ;)<br>
<br>
I suggest either being very sure about what's going on (and you can't<br>
realistically do that in a webmail client), or attaching code as an<br>
attachment, like also mentioned at<br>
<a href="http://www.riverbankcomputing.com/support/help" target="_blank">http://www.riverbankcomputing.com/support/help</a><br>
<span class="HOEnZb"><font color="#888888"><br>
Florian<br>
<br>
--<br>
<a href="http://www.the-compiler.org" target="_blank">http://www.the-compiler.org</a> | <a href="mailto:me@the-compiler.org">me@the-compiler.org</a> (Mail/XMPP)<br>
GPG 0xFD55A072 | <a href="http://the-compiler.org/pubkey.asc" target="_blank">http://the-compiler.org/pubkey.asc</a><br>
I love long mails! | <a href="http://email.is-not-s.ms/" target="_blank">http://email.is-not-s.ms/</a><br>
</font></span><br>_______________________________________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><font size="1"><b>Marcus Ottosson</b><br><a href="mailto:konstruktion@gmail.com" target="_blank">konstruktion@gmail.com</a></font><font size="1"><br></font></div>
</div>