Table Of Contents

Previous topic

GBSizerItem

Next topic

GCDC

This Page

phoenix_title GBSpan

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


class_hierarchy Inheritance Diagram

Inheritance diagram for class GBSpan

Inheritance diagram of 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.
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.
__getitem__  
__len__  
__nonzero__  
__reduce__  
__repr__  
__setitem__  
__str__  
__ne__ Compare inequality of two GBSpans.
__eq__ Compare equality of two GBSpans.

api Class API



class GBSpan(object)

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

Possible constructors:

GBSpan()

GBSpan(rowspan, colspan)

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


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) –


__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 (GBSpan) –


__eq__(self)

Compare equality of two GBSpans.

Parameters:o (GBSpan) –

Properties



Colspan

See GetColspan and SetColspan



Rowspan

See GetRowspan and SetRowspan



colspan

See GetColspan and SetColspan



rowspan

See GetRowspan and SetRowspan