user6811
user6811

Reputation: 417

How can I set up a dedicated screen area for an application in Python?

A good example is MS OneNote. It has the option to be fixed to one side of the screen and pushes all other windows to the side. When maximizing or resizing other windows, they can only expand up to the edge of OneNote. Does Python have this capability using Tkinter or another module? Thank you for any assistance.

Upvotes: 4

Views: 661

Answers (3)

BrendanMcK
BrendanMcK

Reputation: 14508

The win32 feature you're looking for is called Application Desktop Toolbars - it allows your application to cooperate with the shell and reserve space along the side, similar to the taskbar.

If you want to implement this yourself, you'll likely need to use Win32 somehow.

It looks like there's a python wrapper for this, however: searching for python and appbar turned up wxAppBar which seems to be a python wrapper for it.

Upvotes: 2

Li-aung Yip
Li-aung Yip

Reputation: 12486

See the Microsoft documentation on "Windows" and "Window Features". This being windows-specific stuff, the only way to set these properties is using the Win32 API or similar.

The pywin32 module exposes the Win32 API to Python. There's even a tag!

Upvotes: 1

amindfv
amindfv

Reputation: 8448

Tkinter has very little control over the behavior of the rest of the windows on the OS. There's no built-in cross-platform function for this.

Upvotes: 0

Related Questions