dfvscreen#

dfvscreen 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:

dfvScreen(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 dfvScreen(top, **kwargs)[source]#

Bases: object

Set window sizes and resolution

Methods

get_window_geometry(top)

readcsv_window_size()

Set xsize, ysize, xoffset, yoffset of read csv file window

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

transform_window_size()

Set xsize, ysize, xoffset, yoffset of transform window

set_window_geometry

get_window_geometry(top)[source]#
readcsv_window_size()[source]#

Set xsize, ysize, xoffset, yoffset of read csv file window

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

transform_window_size()[source]#

Set xsize, ysize, xoffset, yoffset of transform window