New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tk window not going full screen on 90° rotated screen on mac #85521
Comments
|
It refuses to go full screen when I rotate screen 90° on mac |
|
On Windows, right clicking on the desktop produces a context menu with Display Settings. The dialog has an Orientation pulldown menu with the 4 choices. Without actually rotating my screen, I clicked Portrait and managed to start IDLE and click the full-screen box. It worked. I could not find a similar option on my Macbook. Since the screen is attached to the keyboard, it would be pretty useless. IDLE has some control over whether the full screen button appears on the window title bar, but has nothing to do with what happens when you click it. So this is almost certainly a python-on-macOS installation issue or more likely a tck/tk-on-macOS issue. (One could eliminate IDLE for sure with a minimal tkinter program creating an empty window: "import tkinter; tkinter.Tk()". If that worked, as a Text widget. Kevin, is not maximizing in portrait mode a known issue with tk on macOS? |
|
I have 2nd screen that rotate to portrait. Is there a way to launch "import tkinter; tkinter.Tk()" at idle start? Or I better wait the next update? |
|
I meant to run 'import tkinter; tkinter.Tk()' directly in python, without IDLE involved, in your portrait window. Do that by running terminal in the portrait window. Then try to maximize. Yes we need more volunteers, but bpo-38946 is an issue between macOS Catalina and tk. |
|
It works even after restart. I thought I had to run it after each restart I did it in idle only once. |
|
What is 'it' in 'it works even after restart'? |
|
idle shell window |
|
I can somewhat reproduce the problem with both IDLE and tkinter.Tk() in 3.9b3 and an external monitor. What I did:
When I maximise the window with a rotated display the window grows to cover most of the display, but not all of it: There is a blank area between the menu bar and the top of the window. The height of that area is about that of the titlebar of the window. The window grows to the right size if I first rotate the screen and then start tkinter.Tk(). But then window won't go full-size when the screen is rotated back, some space is left between the righthand side of the window and the edge of the screen (again about the same amount of pixels as the height of the title bar). Issues like this tend to be problems with the macOS port of Tk itself, I expect that to be the case in this instance as well. System:
|
|
The way to tell if _tkinter is involved or if this is purely tcl/tk issue would be for someone open a window directly with tcl/tk commands using either wish or maybe tkinter.tcl. I don't know how. I think that _tkinter involvement in maximize handling is sufficiently unlikely that I would close this as 3rd party. |
|
I am unfortunately unable to reproduce the issue (with the method provided by Ronald), but the way to create a blank window (equivalent to |
|
The python.org installers don't include wish, which means I cannot attempt to reproduce the issue without using tkinter. I agree that this likely is an issue with Tk itself. Maybe keep the issue open for a bit longer to check if the upcoming Tk 8.6.11 release fixes this issue. |
|
The issue is not present with the latest python 3.11 release on macOS 13. I haven't checked yet on macOS 10.15. |


Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: