Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need a help.

I need a function that when I open my option window, the main window of my program is out of use.
Like when I open my computer then from tool>> folder option, than I cant access to my computer.
Posted
Updated 9-Oct-11 8:49am
v2

I have no experience with either Python or QT, but what you need is a modal window.
Using Google[^] I found this http://www.commandprompt.com/community/pyqt/c6351[^].

If this doesn't work for you will do your own Google search on how to create a modal window in Pyhton QT.
 
Share this answer
 
thnx Andre , i found the solutioan :
setWindowModality(2)
 
Share this answer
 
Comments
André Kraak 9-Oct-11 16:56pm    
Your welcome.

Just a comment: If you have a question about or comment on the given solution use the "Have a Question or Comment?" option beneath the solution. This way the person who gave the solution gets an e-mail message.
danger man 2011 10-Oct-11 15:38pm    
Thank you

i will

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900