This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author patrickmelix
Recipients patrickmelix
Date 2021-03-29.08:53:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1617008023.65.0.620967294098.issue43655@roundup.psfhosted.org>
In-reply-to
Content
While trying to fix window behaviour in a python project (ASE: https://wiki.fysik.dtu.dk/ase/), I came across this problem:

Tkinter does not set the _NET_WM_WINDOW_TYPE when using the FileDialog class or it's derivatives. I could not find a reason for this and it leads to my window manager (i3) not automatically recognising the window as a dialogue (and thus not enabling floating). I think the window types are there exactly for that purpose, so I don't see why not to set this as the default for the FileDialog class.

I was able to change this by adding the line
```self.top.wm_attributes('-type', 'dialog')```
to the initialization of the FileDialog class. See also MR on GitHub.

Since I am an absolute beginner at this please do forgive if I missed something.
History
Date User Action Args
2021-03-29 08:53:43patrickmelixsetrecipients: + patrickmelix
2021-03-29 08:53:43patrickmelixsetmessageid: <1617008023.65.0.620967294098.issue43655@roundup.psfhosted.org>
2021-03-29 08:53:43patrickmelixlinkissue43655 messages
2021-03-29 08:53:43patrickmelixcreate