Skip to content

'Dialog' object has no attribute 'wm_attributes' #273

Answered by alejandroautalan
Linos1391 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @Linos1391, thanks for trying pygubu. Sorry for the late response.

The Dialog widget has a toplevel attribute to manage the dialog window.

Use this attribute to modify attributes of the window. In your example:

self.mainwindow.wm_attributes('-topmost', True)
self.advance_dialog.toplevel.wm_attributes('-topmost', True)

You have a similar example here.

Let me know if this solves your problem.

Regards
Alejandro A.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Linos1391
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants