Ok, I've cleaned it up and changed a few things. Moved test.py into the main file for access as well.<div><br><div class="gmail_quote">On Sat, Mar 5, 2011 at 3:49 PM, Entity Reborn <span dir="ltr"><<a href="mailto:entityreborn@gmail.com">entityreborn@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hackish, it is a little in spots.<br>
<br>
As far as the radio items not working for you, I'm using python 3.2,<br>
and the latest stable PyQt4 downloaded from the site this morning<br>
(4.8.3-1), on windows xp. IIRC, you mentioned this not working earlier<br>
as well, yet several people I sent the code to didn't have any issues.<br>
<br>
As for clarity and notes, I'll clean it up a bit, where I can. As this<br>
is derived from a project I'm working on, I can remove some non-demo<br>
related stuff (which I should have done anyway!), remove other<br>
unneeded functionality, and add some other notes as well.<br>
<div><div></div><div class="h5"><br>
On Mar 5, 2011, at 3:34 PM, "Hans-Peter Jansen" <<a href="mailto:hpj@urpla.net">hpj@urpla.net</a>> wrote:<br>
<br>
> On Saturday 05 March 2011, 23:50:18 Entity Reborn wrote:<br>
>> Sorry, small untested bug introduced just before I sent that.<br>
>><br>
>> On Sat, Mar 5, 2011 at 2:47 PM, Entity Reborn<br>
> <<a href="mailto:entityreborn@gmail.com">entityreborn@gmail.com</a>>wrote:<br>
>>> I'd like to submit these two files as an advanced example for<br>
>>> manipulation of treeviews.<br>
>>> This example demonstrates how to override the default drawn<br>
>>> decoration for checkboxed items (replacing it with a radiobutton<br>
>>> decal) as well as the accomanying logic, as well as a few other<br>
>>> extras I've thrown in.<br>
>>><br>
>>> I'd be very honored if this would be added to the Examples<br>
>>> directory, but obviously, it's up to the developers of PyQt.<br>
>>><br>
>>> Feel free to comment on the code, hack it, tear it to bits, etc.<br>
>>> Some of the quality of the code isn't the greatest, but a little<br>
>>> TLC would go over well.<br>
>>> Enjoy!<br>
>>><br>
>>> Run test.py to launch the demo.<br>
>>><br>
>>> --<br>
>>> ~EntityReborn<br>
><br>
> Well, the radio items aren't drawn at all here. From a cursory look over<br>
> the code, that is strange, but I cannot look into this more<br>
> intensively, ATM.<br>
><br>
> python: 2.6<br>
> sip: 4.12.1<br>
> qt4: 4.6.3<br>
> pyqt4: snapshot-4.8.4-278054fd857c<br>
><br>
> The whole thing is lacking a generic name, and it _looks_ somewhat<br>
> hackish. Examples should come clear and concise, and might deserve a<br>
> few notes about the purpose/implementation, if they do not derive from<br>
> the Qt examples.<br>
><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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>~EntityReborn<br>
</div>