views:

477

answers:

2

How can I get a handle to my current window in wx.Python (hWnd) and set it's style to WS_EX_NOPARENTNOTIFY, or can I set this when I initialize the frame?

This question is a result from an answer here

A: 

Try this?

frame.SetExtraStyle(4)

Also, frame.GetHandle() will return the HWND. But this all sounds pretty hacked up.

FogleBird
Agreed, but there doesn't seem to be a way to close the window and not have the parent refuse to close later.
Fry
A: 

Hello Fry ! I see You're a VISUM programmer. I'm sort of too, I know it's rather a personal message than a comment but I did not see the other way to contact You. Can You possibly help me with the problem: How to access and change assignment parameters in Visum (f.e. Max iteration no in Stochastic Assignment). I didn't find it in Attributes.xls, either in COM documentation. Visum help line didn't reply to my query yet :) please contact me at mail RafalKucharski(nospam_at_)gazeta.pl . PS. I've just wrote 1500 lines of py script for visum and I think we can share our thoughts. PS. Delete this comment as soon as You read it Rafal

Rafal
Really, you are probably better off waiting for hotline to reply for a full response as this is just a guess: From the Operation object there should be an attribute for getting a PrTAssignment and perhaps you can populate the StopCriteria's MaxIt attribute.Again, just a guess. Good luck!
Fry
They've replied, actually like few hours ago. The only way to manipulate Assignment params is via param.par file written in XML , which actually provides params only for incremental, stochastic, and equilibrium assignment, which is not enough for me:/ BTW: In Karlsruhe some people has told me that they're kind of leaving python and start writing in C# as it's much faster, what do You think about it? And what kind of scripts do You exactly do?
Rafal