How to set up a dedicated screen area for a Python application?

A good example is MS OneNote. It has the ability to lock onto one side of the screen and pushes all other windows to the side. When you maximize or resize other windows, they can only expand to the edge of OneNote. Does Python have this feature with Tkinter or another module? Thanks for any help.

+4
source share
3 answers

The win32 function you are looking for is called the Application Desktop Toolbars - this allows your application to interact with the shell and reserve space from the side, similar to the taskbar.

If you want to implement this yourself, you probably have to use Win32 somehow.

It looks like there is a python shell for this: python and appbar search is enabled by wxAppBar , which seems to be a python shell for it.

+2
source

See Microsoft's Windows documentation and Window Properties . This is Windows-specific material, the only way to set these properties is to use the Win32 API or similar.

The pywin32 module provides the Win32 API for Python. There is even pywin32 !

+1
source

Tkinter has very little control over the behavior of other OS windows. There is no built-in cross-platform feature for this.

0
source

Source: https://habr.com/ru/post/1397542/


All Articles