[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: defining and calling QML functions directly from Python
From: Stefan Seefeld <stefan () seefeld ! name>
Date: 2021-09-25 13:47:01
Message-ID: 36f0d961-fe37-5017-70d6-5de8df3aba83 () seefeld ! name
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
On 2021-09-25 6:28 a.m., Phil Thompson wrote:
> On 24/09/2021 19:24, Stefan Seefeld wrote:
>> Thanks Maxime,
>>
>> Yes, thanks for sharing your QMLWrapper class.
>>
>> Meanwhile, I have applied the attached patch to solve my current
>> problem. With that, I'm able to call QML functions even from
>> non-primary threads.
>>
>> Phil, do you think this is a sensible fix ? Feel free to incorporate
>> this into PyQt !
>
> Seems reasonable, however should the GIL be released before the call
> to invoke() and re-acquired afterwards?
Sure, that would make sense (though I think this change is entirely
orthogonal to the one I propose here).
Stefan
--
...ich hab' noch einen Koffer in Berlin...
[Attachment #5 (multipart/related)]
[Attachment #7 (text/html)]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">On 2021-09-25 6:28 a.m., Phil Thompson
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:7faa9a91f5d3992abb9682f115478ace@riverbankcomputing.com">On
24/09/2021 19:24, Stefan Seefeld wrote:
<br>
<blockquote type="cite">Thanks Maxime,
<br>
<br>
Yes, thanks for sharing your QMLWrapper class.
<br>
<br>
Meanwhile, I have applied the attached patch to solve my current
<br>
problem. With that, I'm able to call QML functions even from
<br>
non-primary threads.
<br>
<br>
Phil, do you think this is a sensible fix ? Feel free to
incorporate
<br>
this into PyQt !
<br>
</blockquote>
<br>
Seems reasonable, however should the GIL be released before the
call to invoke() and re-acquired afterwards?
<br>
</blockquote>
<p>Sure, that would make sense (though I think this change is
entirely orthogonal to the one I propose here).<br>
</p>
<div class="moz-signature">
<div class="moz-signature">
<div class="moz-signature">
<pre><img moz-do-not-send="false" \
src="cid:part1.8C9E9079.289F1091@seefeld.name" alt="Stefan" \
width="123" height="77">
--
...ich hab' noch einen Koffer in Berlin...
</pre>
</div>
</div>
</div>
</body>
</html>
[".signature.png" (image/png)]
["stefan.vcf" (text/x-vcard)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic