Grx.Context.resize_subcontext

@accepts(Grx.Context, int, int, int, int)
@returns(none)
def resize_subcontext(self, x1, y1, x2, y2):
    # Python wrapper for grx_context_resize_subcontext()
  

Sub-contexts can be resized, but not their parents (i.e. anything returned by Grx.Context.new or set up by Grx.set_mode cannot be resized – because this could lead to irrecoverable "loss" of drawing memory.

The coordinate arguments (x1 through y2) are interpreted relative to the parent context's limits.

self

the context

x1

the new left bounds

y1

the new top bounds

x2

the new right bounds

y2

the new bottom bounds