Message389676
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. |
|
Date |
User |
Action |
Args |
2021-03-29 08:53:43 | patrickmelix | set | recipients:
+ patrickmelix |
2021-03-29 08:53:43 | patrickmelix | set | messageid: <1617008023.65.0.620967294098.issue43655@roundup.psfhosted.org> |
2021-03-29 08:53:43 | patrickmelix | link | issue43655 messages |
2021-03-29 08:53:43 | patrickmelix | create | |
|