Bryan Cole a écrit :
>> Hi Bryan,
>>
>> Thank you for sharing your code. It looks very interesting but 
>> unfortunately I was not able to run the script. It seems that the driver 
>> initialization (InitDriver) isn't correctly processed and segfaults 
>> (under Windows). I did not tested under Linux.
>>     
>
> Rats. Sorry. I left in my definition for CSF_GraphicShr environment.

Stupid me! I hacked your scripts for 1 hour but forgot to comment out 
the CSF_Gr.. line!

>  I
> should have commented this out (top of the occ_display.py file). This
> may be the problem. 
>
> The driver init stuff is hard to get right and particularly so with
> TraitsUI since the window creation is handled inside the TraitsUI GUI
> backend. I did the InitDriver call in the paint-handler, thinking that
> paint events will only be generated once the window is created and
> visible. 
>   

It's really a good idea to use the 'paint' event to detect that the 
window is visible. I will use it in the wxDisplay.py script. As a 
consequence, the InitDriver() method will become a kind of 'private' 
method since it will not be accessed from the outside anymore.

> Bryan
>   

Thomas

>   
>> Cheers,
>>
>> Thomas
>>
>>
>> _______________________________________________
>> Pythonocc-users mailing list
>> Pythonocc-users@gna.org
>> https://mail.gna.org/listinfo/pythonocc-users
>>     

_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to