There is a small program with a set size, you need to make sure that when you start it, the window opens in the lower right corner of the screen, close to the edge on the right and to the taskbar from the bottom. I use PyQt5. Here is a snippet of code:
def location_on_the_screen(self): fg = self.frameGeometry() sbrp = QDesktopWidget().availableGeometry().bottomRight() fg.moveBottomRight(sbrp) self.move(fg.topLeft())
But the program opens in this way a little outside the screen and to the right and below, going far beyond the taskbar. The documentation says that frameGeometry () returns the size along with the frame of the window, although this is not my case, and because of this, everything is crooked. Please help. :)