Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

i have an application that has two Gtk.Window's and one of them calls the another, but when using Gtk.Window.set_modal(True) it doesn't work, i still can interact with the main window...

any help?

Regards

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

Try to set the second as a parent from the first too.

window2.set_transient_for(window1)
window2.set_modal(True)
share|improve this answer
    
got TypeError: Expected Gtk.Window, but got GObjectMeta while doing this... –  Hairo Sep 17 '12 at 21:00
    
You need to pass the instance from the first window to the constructor of the second one. I think that traceback tells you, you used an uninitialized Gtk.Window. –  Timo Sep 18 '12 at 8:50
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.