1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
.. wxPython Phoenix documentation
This file was generated by Phoenix's sphinx generator and associated
tools, do not edit by hand.
Copyright: (c) 2011-2018 by Total Control Software
License: wxWindows License
.. include:: headings.inc
.. module:: wx.lib.utils
.. currentmodule:: wx.lib.utils
.. highlight:: python
.. _wx.lib.utils:
==========================================================================================================================================
|phoenix_title| **wx.lib.utils**
==========================================================================================================================================
A few useful functions. (Ok, only one so far...)
|function_summary| Functions Summary
====================================
================================================================================ ================================================================================
:func:`~wx.lib.utils.AdjustRectToScreen` Compare the rect with the dimensions of the display that the rect's
================================================================================ ================================================================================
|
Functions
------------
.. function:: AdjustRectToScreen(rect, adjust=(0,0))
Compare the rect with the dimensions of the display that the rect's
upper left corner is positioned on. If it doesn't fit entirely on
screen then attempt to make it do so either by repositioning the
rectangle, resizing it, or both. Returns the adjusted rectangle.
If the adjustment value is given then it will be used to ensure that
the rectangle is at least that much smaller than the display's client
area.
:param wx.Rect `rect`: the rectangle to be repositioned;
:param tuple `adjust`: if given, it will be used to ensure that
the rectangle is at least that much smaller than the display's client
area.
:rtype: `rect`
|