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