I have an PyQt5 application that is opening in fullscreen mode when I don't want it too on Ubuntu 20.04. I have a large main window with a minimum size of 1830 x 900 and I've tried moving it in various ways but nothing seems to work. What I do notice is that the window initially opens in the upper left corner over the launcher and I think this causes it to go into fullscreen mode. I can't seem to move the window into a different start-up location. Any help with issue would be greatly appreciated.
Related
I'm just trying to do some of my 100 days of code homework, but since my OS upgraded last night, whenever I try to run a turtle screen (the same code that worked yesterday), the window freezes and I have to shut it down.
Everything ( to my knowledge ) is upgraded and updated in the virtual environment and my computer. ( I use homebrew ). Same freezing screen when code is ran in Idle,pycharm, visual studio code, etc.
Googling around it seems to me an OS issue, has anyone found a workaround? I've tried everything I can find to fix it, but nothing is working. I can't even get an error code because the window freezes and I have to force it to close.
Should I just go back to the last update when everything was working fine?
I use a Mac with Monterey, working on the 100 days challenge and have the same problem.
I did not try to use Turtle with other OS.
I solved half of the problem, by going into Python-Preferences-iPhython Console-Graphics and changing graphics backend to Tkinter.
Now the page does not freeze anymore at the beginning, it opens the screen, executes the code and then when I close the screen I find another frozen screen behind which I can exit only by Force Quit.
I use python 3.6 on windows 10. I want the tkinter window stay always on desktop even the desktop button is pressed. When I set topmost to true it stays always on desktop but it also precedes other windows. I want my window stays always on desktop without being the topmost of open windows.
Is there a way doing this?
Thanks.
Im using PyCharm on MacBook Pro(OS: macOS Mojave). After updating to the new PyCharm version(Version: 2019.1.3), now tool bar is not visible when PyCharm IDE in full screen mode. Is there any solution for this?
Thank you!
It looks like you're running in Full Screen mode. On Windows, the key to switch is F11, on macOS it's N/A according to here: https://www.jetbrains.com/help/pycharm/ide-viewing-modes.html?section=Windows%20or%20Linux
I think that's a documentation error, but I'm sure you can find the appropriate key somewhere in the settings.
You indicated you were indeed running full screen, but the toolbar never displays in full screen, for any project, while it does display in non-full screen. Submitting a bug report here https://youtrack.jetbrains.com/oauth?state=%2Fissues%2FPY (with screen shot and good info on your setup) is likely to quickly get you more information - or the confirmation that this is a bug and hopefully a quick fix.
To exit the full screen mode, choose View | Exit Full Screen on the main menu.The main toolbar contains buttons that duplicate the essential commands for quicker access.
By default, the main toolbar is hidden. To display it, select View | Toolbar on the main menu.
Thanks for the quick reply people. today I updated PyCharm to it's newest version(2019.2) and this bug wasn't there.
I have the same issue on my mac, when projects are opened in fullscreen (at startup) the topbar is "cutted away". You can see that there still is a small line where the run configuration is, so it's not on purpose. What I usually do is leaving fullscreen and reentering it, the issue is fixed.
I am positive the issue is related to fullscreen startup of the IDE.
I'm quite new to linux, raspberry, tkinter and python and therefore I need some guidance to get on the right track.
I'm running Arch Linux on a raspberry pi and I want a quite fast loaded gui for my project. I have decided to go with tkinter. I have installed xorg and some other needed xorg packages, and when I run "startx" I get three windows and a litte clock with some green/blue colored borders and i can move the widows with drag and drop. If I run my tkinter py-file from any window it works just fine.
I came over the "xinit" command and this loads a little faster and just gives me one window without borders. This actually suits me better since my "base window" will work as some kind of desktop and from here I will pop up other windows. Since there's no borders or title bars on the windows, they are not moveable. Is there any way to achieve this? That is, I want just some windows to have a border and a title bar.
And; how can I run the tkinter py-file automatically when I run the xinit/startx? I have tried the other approach by run the xinit/startx in the pyfile, but this does not work. I guess this will be called as some kind of sub command in another thread, or something? Any suggestions how I do this?
I have a python command line script that starts a PyQt Application showing the input of the video device in a little window. Then it starts a curses screen so that the user can control the camera with the keyboard.
After starting the script, the window focus is automatically on the PyQt window. Is there any way to tell PyQt to give up the window focus or curses / the terminal to reclaim it?
I use Linux (Mint Cinnamon) and the solution does not have to be OS independent.
You can try with setFocusPolicy here is the documentation. http://pyqt.sourceforge.net/Docs/PyQt4/qwidget.html#setFocusPolicy