Package wx :: Class GBPosition
[frames | no frames]

Type GBPosition

object --+
         |
        GBPosition


This class represents the position of an item in a virtual grid of rows and columns managed by a wx.GridBagSizer. wxPython has typemaps that will automatically convert from a 2-element sequence of integers to a wx.GBPosition, so you can use the more pythonic representation of the position nearly transparently in Python code.


Method Summary
GBPosition __init__(self, row, col)
This class represents the position of an item in a virtual grid of rows and columns managed by a wx.GridBagSizer.
  __del__(self)
bool __eq__(self, other)
Compare GBPosition for equality.
  __getitem__(self, index)
  __len__(self)
bool __ne__(self, other)
Compare GBPosition for inequality.
  __nonzero__(self)
  __reduce__(self)
  __repr__(self)
  __setitem__(self, index, val)
  __str__(self)
  asTuple(*args, **kwargs)
asTuple is deprecated, use Get instead
PyObject Get(self)
int GetCol(self)
int GetRow(self)
  Set(self, row, col)
  SetCol(self, col)
  SetRow(self, row)

Property Summary
  col: GetCol(self) -> int
  row: GetRow(self) -> int
  thisown: The membership flag

Class Variable Summary
bool __safe_for_unpickling__ = True

Method Details

__init__(self, row=0, col=0)
(Constructor)

This class represents the position of an item in a virtual grid of rows and columns managed by a wx.GridBagSizer. wxPython has typemaps that will automatically convert from a 2-element sequence of integers to a wx.GBPosition, so you can use the more pythonic representation of the position nearly transparently in Python code.

Parameters:
row
           (type=int)

col
           (type=int)

Returns:
GBPosition
Overrides:
__builtin__.object.__init__

__eq__(self, other)
(Equality operator)

Compare GBPosition for equality.

Parameters:
other
           (type=PyObject)

Returns:
bool

__ne__(self, other)

Compare GBPosition for inequality.

Parameters:
other
           (type=PyObject)

Returns:
bool

asTuple(*args, **kwargs)

asTuple is deprecated, use Get instead


Property Details

col

GetCol(self) -> int

Get Method:
GetCol(self)
Set Method:
SetCol(self, col)

row

GetRow(self) -> int

Get Method:
GetRow(self)
Set Method:
SetRow(self, row)

thisown

The membership flag


Class Variable Details

__safe_for_unpickling__

Type:
bool
Value:
True                                                                   

Generated by Epydoc 2.1.20050511.rpd on Mon Feb 16 12:52:48 2009 http://epydoc.sf.net