ncvue.ncvscreen#

ncvscreen class for screen size and resolution

This module was written by Matthias Cuntz while at Institut National de Recherche pour l’Agriculture, l’Alimentation et l’Environnement (INRAE), Nancy, France.

copyright:

Copyright 2025- Matthias Cuntz - mc (at) macu (dot) de

license:

MIT License, see LICENSE for details.

The following classes are provided:

ncvScreen(top, **kwargs)

Set window sizes and resolution

History
  • Written Nov 2025 by Matthias Cuntz (mc (at) macu (dot) de)

  • Add get/set_window_geometry from idle, Nov 2025, Matthias Cuntz

  • Get size from fullscreen window to deal with multiple monitors, Nov 2025, Matthias Cuntz

  • Update toplevel during zoom for Windows azure, Dec 2025, Matthias Cuntz

class ncvScreen(top, **kwargs)[source]#

Bases: object

Set window sizes and resolution

Methods

get_window_geometry(top)

scale(x)

Scales x by current dpi over dpi of development screen

secondary_window_size()

Set xsize, ysize, xoffset, yoffset of secondary window

standard_window_size()

Set xsize, ysize, xoffset, yoffset of standard window

set_window_geometry

get_window_geometry(top)[source]#
scale(x)[source]#

Scales x by current dpi over dpi of development screen

secondary_window_size()[source]#

Set xsize, ysize, xoffset, yoffset of secondary window

set_window_geometry(top, geometry)[source]#
standard_window_size()[source]#

Set xsize, ysize, xoffset, yoffset of standard window