MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / ResizeEvent

Class ResizeEvent

lib/matplotlib/backend_bases.py:1233–1250  ·  view source on GitHub ↗

An event triggered by a canvas resize. A ResizeEvent has a number of special attributes in addition to those defined by the parent `Event` class. Attributes ---------- width : int Width of the canvas in pixels. height : int Height of the canvas in pixel

Source from the content-addressed store, hash-verified

1231
1232
1233class ResizeEvent(Event):
1234 """
1235 An event triggered by a canvas resize.
1236
1237 A ResizeEvent has a number of special attributes in addition to those
1238 defined by the parent `Event` class.
1239
1240 Attributes
1241 ----------
1242 width : int
1243 Width of the canvas in pixels.
1244 height : int
1245 Height of the canvas in pixels.
1246 """
1247
1248 def __init__(self, name, canvas):
1249 super().__init__(name, canvas)
1250 self.width, self.height = canvas.get_width_height()
1251
1252
1253class CloseEvent(Event):

Callers 7

handle_resizeMethod · 0.90
size_allocateMethod · 0.90
resizeMethod · 0.90
_on_sizeMethod · 0.90
resizeEventMethod · 0.90
resize_eventMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…