Hi Gael,
If you want an easy way out, you can use this built in mel function:
Example 1:
if(`window -exists "win1"`==true)
deleteUI "win1";
window -topEdge 1 -leftEdge 1 "win1";
//confirmDialog will freeze Maya.
confirmDialog -p "win1";
Example 2:
global string $gMainWindow;
// hide Main Window
window -edit -vis 0 $gMainWindow;
Enjoy!
On May 7, 9:44 pm, Gaël Honorez <[email protected]> wrote:
> Hi,
>
> I'm making some custom file saving dialogs with pyQT. All the stuffs
> work nice, but I have one big problem :
>
> When saving, it's obvious that I DONT want the user being able get
> back in maya and do stuffs.
>
> But actually, when I'm opening the dialog box, maya is still available
> to the user.
>
> How is it possible to make maya wait for the dialog to close ?
>
> (if you know the answer, please post a little example with a
> unresponsive "hello world" dialog box :)
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---