phoenix_title wx.GBSpan

This class is used to hold the row and column spanning attributes of items in a wx.GridBagSizer.


class_hierarchy Class Hierarchy

Inheritance diagram for class GBSpan:

method_summary Methods Summary

__init__

Default constructor, setting the rowspan and colspan to (1,1) meaning that the item occupies one cell in each direction.

Get

Return the rowspan and colspan properties as a tuple.

GetColspan

Get the current colspan value.

GetIM

Returns an immutable representation of the wx.GBSpan object, based on namedtuple.

GetRowspan

Get the current rowspan value.

Set

Set both the rowspan and colspan properties.

SetColspan

Set a new colspan value.

SetRowspan

Set a new rowspan value.

__bool__

__getitem__

__len__

__nonzero__

__reduce__

__repr__

__setitem__

__str__

__ne__

Compare inequality of two GBSpans.

__eq__

Compare equality of two GBSpans.


property_summary Properties Summary

Colspan

See GetColspan and SetColspan

Rowspan

See GetRowspan and SetRowspan

colspan

See GetColspan and SetColspan

rowspan

See GetRowspan and SetRowspan


api Class API

class wx.GBSpan(object)

Possible constructors:

GBSpan()

GBSpan(rowspan, colspan)

This class is used to hold the row and column spanning attributes of items in a GridBagSizer.


Methods

__init__(self, *args, **kw)

overload Overloaded Implementations:



__init__ (self)

Default constructor, setting the rowspan and colspan to (1,1) meaning that the item occupies one cell in each direction.



__init__ (self, rowspan, colspan)

Construct a new wx.GBSpan, setting the rowspan and colspan.

Parameters:
  • rowspan (int) –

  • colspan (int) –





Get(self)

Return the rowspan and colspan properties as a tuple.

Return type:

tuple

Returns:

( rowspan, colspan )



GetColspan(self)

Get the current colspan value.

Return type:

int



GetIM(self)

Returns an immutable representation of the wx.GBSpan object, based on namedtuple.

This new object is hashable and can be used as a dictionary key, be added to sets, etc. It can be converted back into a real wx.GBSpan with a simple statement like this: obj = wx.GBSpan(imObj).



GetRowspan(self)

Get the current rowspan value.

Return type:

int



Set(self, rowspan=0, colspan=0)

Set both the rowspan and colspan properties.



SetColspan(self, colspan)

Set a new colspan value.

Parameters:

colspan (int) –



SetRowspan(self, rowspan)

Set a new rowspan value.

Parameters:

rowspan (int) –



__bool__(self)


__getitem__(self, idx)


__len__(self)


__nonzero__(self)


__reduce__(self)


__repr__(self)


__setitem__(self, idx, val)


__str__(self)


__ne__(self)

Compare inequality of two GBSpans.

Parameters:

o (wx.GBSpan) –



__eq__(self)

Compare equality of two GBSpans.

Parameters:

o (wx.GBSpan) –


Properties

Colspan

See GetColspan and SetColspan



Rowspan

See GetRowspan and SetRowspan



colspan

See GetColspan and SetColspan



rowspan

See GetRowspan and SetRowspan