Table Of Contents

Previous topic

ImageResolution

Next topic

InfoBar

This Page

phoenix_title IndividualLayoutConstraint


class_hierarchy Inheritance Diagram

Inheritance diagram for class IndividualLayoutConstraint

Inheritance diagram of IndividualLayoutConstraint


api Class API



class IndividualLayoutConstraint(Object)

Possible constructors:

IndividualLayoutConstraint()

Methods



__init__(self)


Above(self, sibling, margin=LAYOUT_DEFAULT_MARGIN)
Parameters:
  • sibling (Window) –
  • margin (int) –


Absolute(self, val)
Parameters:val (int) –


AsIs(self)


Below(self, sibling, margin=LAYOUT_DEFAULT_MARGIN)
Parameters:
  • sibling (Window) –
  • margin (int) –


GetDone(self)
Return type:bool


GetEdge(self, which, thisWin, other)
Parameters:
Return type:

int



GetMargin(self)
Return type:int


GetMyEdge(self)
Return type: Edge


GetOtherEdge(self)
Return type:int


GetOtherWindow(self)
Return type: Window


GetPercent(self)
Return type:int


GetRelationship(self)
Return type: Relationship


GetValue(self)
Return type:int


LeftOf(self, sibling, margin=LAYOUT_DEFAULT_MARGIN)
Parameters:
  • sibling (Window) –
  • margin (int) –


PercentOf(self, otherW, wh, per)
Parameters:


ResetIfWin(self, otherW)
Parameters:otherW (Window) –
Return type:bool


RightOf(self, sibling, margin=LAYOUT_DEFAULT_MARGIN)
Parameters:
  • sibling (Window) –
  • margin (int) –


SameAs(self, otherW, edge, margin=LAYOUT_DEFAULT_MARGIN)
Parameters:
  • otherW (Window) –
  • edge (Edge) –
  • margin (int) –


SatisfyConstraint(self, constraints, win)
Parameters:
Return type:

bool



Set(self, rel, otherW, otherE, val=0, margin=LAYOUT_DEFAULT_MARGIN)
Parameters:


SetDone(self, d)
Parameters:d (bool) –


SetEdge(self, which)
Parameters:which (Edge) –


SetMargin(self, m)
Parameters:m (int) –


SetRelationship(self, r)
Parameters:r (Relationship) –


SetValue(self, v)
Parameters:v (int) –


Unconstrained(self)

Properties



Done

See GetDone and SetDone



Margin

See GetMargin and SetMargin



MyEdge

See GetMyEdge



OtherEdge

See GetOtherEdge



OtherWindow

See GetOtherWindow



Percent

See GetPercent



Relationship

See GetRelationship and SetRelationship



Value

See GetValue and SetValue