Why does setting the matplotlib backend to QtAgg change the resolution of TKinter windows? /u/Kcorbyerd Python Education

Hi folks, I’ve been re-writing a python script I wrote a while back to work on improving my code’s readability and general efficiency, and as part of that I wanted to get rid of my old hard-coded paths and use TKinter to enable using a file explorer to pick files and folders. I pulled some code over from another project I had worked on where I was using TKinter and matplotlib, and in that project I set %matplotlib qt for some reason I’ve forgotten now. I decided to try and find out why I did that, and in testing I noticed that when I removed that line all my TKinter windows went from being clearly 4K resolution to being 1080p.

I tried posting on r/Tkinter but there wasn’t much response, so I figured I’d post here and ask if anyone knows what is happening that is causing this change.

submitted by /u/Kcorbyerd
[link] [comments]

​r/learnpython Hi folks, I’ve been re-writing a python script I wrote a while back to work on improving my code’s readability and general efficiency, and as part of that I wanted to get rid of my old hard-coded paths and use TKinter to enable using a file explorer to pick files and folders. I pulled some code over from another project I had worked on where I was using TKinter and matplotlib, and in that project I set %matplotlib qt for some reason I’ve forgotten now. I decided to try and find out why I did that, and in testing I noticed that when I removed that line all my TKinter windows went from being clearly 4K resolution to being 1080p. I tried posting on r/Tkinter but there wasn’t much response, so I figured I’d post here and ask if anyone knows what is happening that is causing this change. submitted by /u/Kcorbyerd [link] [comments] 

Hi folks, I’ve been re-writing a python script I wrote a while back to work on improving my code’s readability and general efficiency, and as part of that I wanted to get rid of my old hard-coded paths and use TKinter to enable using a file explorer to pick files and folders. I pulled some code over from another project I had worked on where I was using TKinter and matplotlib, and in that project I set %matplotlib qt for some reason I’ve forgotten now. I decided to try and find out why I did that, and in testing I noticed that when I removed that line all my TKinter windows went from being clearly 4K resolution to being 1080p.

I tried posting on r/Tkinter but there wasn’t much response, so I figured I’d post here and ask if anyone knows what is happening that is causing this change.

submitted by /u/Kcorbyerd
[link] [comments] 

Leave a Reply

Your email address will not be published. Required fields are marked *