You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

1309 lines
52 KiB

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1" />
<meta name="generator" content="pdoc 0.9.2" />
<title>TermTk.TTkLayouts.layout API documentation</title>
<meta name="description" content="Layout
[Tutorial](https://github.com/ceccopierangiolieugenio/pyTermTk/blob/main/tutorial/002-layout.md)" />
<link rel="preload stylesheet" as="style" href="https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/sanitize.min.css" integrity="sha256-PK9q560IAAa6WVRRh76LtCaI8pjTJ2z11v0miyNNjrs=" crossorigin>
<link rel="preload stylesheet" as="style" href="https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/typography.min.css" integrity="sha256-7l/o7C8jubJiy74VsKTidCy1yBkRtiUGbVkYBylBqUg=" crossorigin>
<link rel="stylesheet preload" as="style" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/github.min.css" crossorigin>
<style>:root{--highlight-color:#fe9}.flex{display:flex !important}body{line-height:1.5em}#content{padding:20px}#sidebar{padding:30px;overflow:hidden}#sidebar > *:last-child{margin-bottom:2cm}.http-server-breadcrumbs{font-size:130%;margin:0 0 15px 0}#footer{font-size:.75em;padding:5px 30px;border-top:1px solid #ddd;text-align:right}#footer p{margin:0 0 0 1em;display:inline-block}#footer p:last-child{margin-right:30px}h1,h2,h3,h4,h5{font-weight:300}h1{font-size:2.5em;line-height:1.1em}h2{font-size:1.75em;margin:1em 0 .50em 0}h3{font-size:1.4em;margin:25px 0 10px 0}h4{margin:0;font-size:105%}h1:target,h2:target,h3:target,h4:target,h5:target,h6:target{background:var(--highlight-color);padding:.2em 0}a{color:#058;text-decoration:none;transition:color .3s ease-in-out}a:hover{color:#e82}.title code{font-weight:bold}h2[id^="header-"]{margin-top:2em}.ident{color:#900}pre code{background:#f8f8f8;font-size:.8em;line-height:1.4em}code{background:#f2f2f1;padding:1px 4px;overflow-wrap:break-word}h1 code{background:transparent}pre{background:#f8f8f8;border:0;border-top:1px solid #ccc;border-bottom:1px solid #ccc;margin:1em 0;padding:1ex}#http-server-module-list{display:flex;flex-flow:column}#http-server-module-list div{display:flex}#http-server-module-list dt{min-width:10%}#http-server-module-list p{margin-top:0}.toc ul,#index{list-style-type:none;margin:0;padding:0}#index code{background:transparent}#index h3{border-bottom:1px solid #ddd}#index ul{padding:0}#index h4{margin-top:.6em;font-weight:bold}@media (min-width:200ex){#index .two-column{column-count:2}}@media (min-width:300ex){#index .two-column{column-count:3}}dl{margin-bottom:2em}dl dl:last-child{margin-bottom:4em}dd{margin:0 0 1em 3em}#header-classes + dl > dd{margin-bottom:3em}dd dd{margin-left:2em}dd p{margin:10px 0}.name{background:#eee;font-weight:bold;font-size:.85em;padding:5px 10px;display:inline-block;min-width:40%}.name:hover{background:#e0e0e0}dt:target .name{background:var(--highlight-color)}.name > span:first-child{white-space:nowrap}.name.class > span:nth-child(2){margin-left:.4em}.inherited{color:#999;border-left:5px solid #eee;padding-left:1em}.inheritance em{font-style:normal;font-weight:bold}.desc h2{font-weight:400;font-size:1.25em}.desc h3{font-size:1em}.desc dt code{background:inherit}.source summary,.git-link-div{color:#666;text-align:right;font-weight:400;font-size:.8em;text-transform:uppercase}.source summary > *{white-space:nowrap;cursor:pointer}.git-link{color:inherit;margin-left:1em}.source pre{max-height:500px;overflow:auto;margin:0}.source pre code{font-size:12px;overflow:visible}.hlist{list-style:none}.hlist li{display:inline}.hlist li:after{content:',\2002'}.hlist li:last-child:after{content:none}.hlist .hlist{display:inline;padding-left:1em}img{max-width:100%}td{padding:0 .5em}.admonition{padding:.1em .5em;margin-bottom:1em}.admonition-title{font-weight:bold}.admonition.note,.admonition.info,.admonition.important{background:#aef}.admonition.todo,.admonition.versionadded,.admonition.tip,.admonition.hint{background:#dfd}.admonition.warning,.admonition.versionchanged,.admonition.deprecated{background:#fd4}.admonition.error,.admonition.danger,.admonition.caution{background:lightpink}</style>
<style media="screen and (min-width: 700px)">@media screen and (min-width:700px){#sidebar{width:30%;height:100vh;overflow:auto;position:sticky;top:0}#content{width:70%;max-width:100ch;padding:3em 4em;border-left:1px solid #ddd}pre code{font-size:1em}.item .name{font-size:1em}main{display:flex;flex-direction:row-reverse;justify-content:flex-end}.toc ul ul,#index ul{padding-left:1.5em}.toc > ul > li{margin-top:.5em}}</style>
<style media="print">@media print{#sidebar h1{page-break-before:always}.source{display:none}}@media print{*{background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important}a[href]:after{content:" (" attr(href) ")";font-size:90%}a[href][title]:after{content:none}abbr[title]:after{content:" (" attr(title) ")"}.ir a:after,a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:0.5cm}p,h2,h3{orphans:3;widows:3}h1,h2,h3,h4,h5,h6{page-break-after:avoid}}</style>
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js" integrity="sha256-Uv3H6lx7dJmRfRvH8TH6kJD1TSK1aFcwgx+mdg3epi8=" crossorigin></script>
<script>window.addEventListener('DOMContentLoaded', () => hljs.initHighlighting())</script>
</head>
<body>
<main>
<article id="content">
<header>
<h1 class="title">Module <code>TermTk.TTkLayouts.layout</code></h1>
</header>
<section id="section-intro">
<h3 id="layout">Layout</h3>
<p><a href="https://github.com/ceccopierangiolieugenio/pyTermTk/blob/main/tutorial/002-layout.md">Tutorial</a></p>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">#!/usr/bin/env python3
# MIT License
#
# Copyright (c) 2021 Eugenio Parodi &lt;ceccopierangiolieugenio AT googlemail DOT com&gt;
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the &#34;Software&#34;), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED &#34;AS IS&#34;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
&#39;&#39;&#39;
### Layout
[Tutorial](https://github.com/ceccopierangiolieugenio/pyTermTk/blob/main/tutorial/002-layout.md)
&#39;&#39;&#39;
from TermTk.TTkCore.log import TTkLog
from TermTk.TTkCore.constant import TTkK
class TTkLayoutItem:
__slots__ = (
&#39;_x&#39;, &#39;_y&#39;, &#39;_z&#39;, &#39;_w&#39;, &#39;_h&#39;,
&#39;_row&#39;,&#39;_col&#39;,
&#39;_sMax&#39;, &#39;_sMaxVal&#39;,
&#39;_sMin&#39;, &#39;_sMinVal&#39;,
&#39;_alignment&#39;,
&#39;_layoutItemType&#39;)
def __init__(self, *args, **kwargs):
self._x, self._y = 0, 0
self._z = kwargs.get(&#39;z&#39;,0)
self._row = kwargs.get(&#39;row&#39;, 0)
self._col = kwargs.get(&#39;col&#39;, 0)
self._layoutItemType = kwargs.get(&#39;layoutItemType&#39;, TTkK.NONE)
self._alignment = kwargs.get(&#39;alignment&#39;, TTkK.NONE)
self._w, self._h = 0, 0
self._sMax, self._sMin = False, False
self._sMaxVal, self._sMinVal = 0, 0
def minimumSize(self):
return self.minimumWidth(), self.minimumHeight()
def minDimension(self,o)-&gt; int: return 0
def minimumHeight(self) -&gt; int: return 0
def minimumWidth(self) -&gt; int: return 0
def maximumSize(self):
return self.maximumWidth(), self.maximumHeight()
def maxDimension(self,o)-&gt; int: return 0x1000
def maximumHeight(self) -&gt; int: return 0x10000
def maximumWidth(self) -&gt; int: return 0x10000
def geometry(self):
return self._x, self._y, self._w, self._h
def setGeometry(self, x, y, w, h):
self._x = x
self._y = y
self._w = w
self._h = h
@property
def z(self): return self._z
@z.setter
def z(self, z): self._z = z
@property
def layoutItemType(self): return self._layoutItemType
@layoutItemType.setter
def layoutItemType(self, t): self._layoutItemType = t
class TTkLayout(TTkLayoutItem):
__slots__ = (&#39;_items&#39;, &#39;_zSortedItems&#39;, &#39;_parent&#39;)
def __init__(self, *args, **kwargs):
TTkLayoutItem.__init__(self, args, kwargs)
self._items = []
self._zSortedItems = []
self._parent = None
self.layoutItemType = TTkK.LayoutItem
def children(self):
return self._items
def count(self):
return len(self._items)
def itemAt(self, index):
if index &lt; len(self._items):
return self._items[index]
return 0
def setParent(self, parent):
if isinstance(parent, TTkLayoutItem):
self._parent = parent
else:
self._parent = TTkWidgetItem(widget=parent)
for item in self._items:
if item.layoutItemType == TTkK.LayoutItem:
item.setParent(self)
else:
item.widget().setParent(self.parentWidget())
def parentWidget(self):
if self._parent is None: return None
if self._parent.layoutItemType == TTkK.WidgetItem:
return self._parent.widget()
else:
return self._parent.parentWidget()
def _zSortItems(self):
self._zSortedItems = sorted(self._items, key=lambda item: item.z)
@property
def zSortedItems(self): return self._zSortedItems
def replaceItem(self, item, index):
self._items[index] = item
self._zSortItems()
self.update()
if item.layoutItemType == TTkK.LayoutItem:
item.setParent(self)
else:
item.widget().setParent(self.parentWidget())
if self.parentWidget():
self.parentWidget().update(repaint=True, updateLayout=True)
def addItem(self, item):
self._items.append(item)
self._zSortItems()
self.update()
if item.layoutItemType == TTkK.LayoutItem:
item.setParent(self)
else:
item.widget().setParent(self.parentWidget())
if self.parentWidget():
self.parentWidget().update(repaint=True, updateLayout=True)
def addWidget(self, widget):
if widget.parentWidget() is not None:
widget.parentWidget().removeWidget(self)
self.addItem(TTkWidgetItem(widget=widget))
def removeItem(self, item):
if item in self._items:
self._items.remove(item)
self._zSortItems()
def removeWidget(self, widget):
for item in self._items:
if item.layoutItemType == TTkK.WidgetItem and \
item.widget() == widget:
self.removeItem(item)
def findBranchWidget(self, widget):
for item in self._items:
if item.layoutItemType == TTkK.LayoutItem:
if item.findBranchWidget(widget) is not None:
return item
else:
if item.widget() == widget:
return item
return None
def raiseWidget(self, widget):
maxz = 0
item = self.findBranchWidget(widget)
for i in self._items:
maxz=max(i.z+1,maxz)
item.z = maxz
if item.layoutItemType == TTkK.LayoutItem:
item.raiseWidget(widget)
self._zSortItems()
def lowerWidget(self, widget):
minz = 0
item = self.findBranchWidget(widget)
for i in self._items:
minz=min(i.z-1,minz)
item.z = minz
if item.layoutItemType == TTkK.LayoutItem:
item.lowerWidget(widget)
self._zSortItems()
def setGeometry(self, x, y, w, h):
ax, ay, aw, ah = self.geometry()
if ax==x and ay==y and aw==w and ah==h: return
TTkLayoutItem.setGeometry(self, x, y, w, h)
self.update(repaint=True, updateLayout=True)
def groupMoveTo(self, x, y):
ox,oy,_,_ = self.fullWidgetAreaGeometry()
dx = x-ox
dy = y-oy
for item in self._items:
x,y,w,h = item.geometry()
item.setGeometry(x+dx,y+dy,w,h)
def fullWidgetAreaGeometry(self):
if not self._items: return 0,0,0,0
minx,miny,maxx,maxy = 0x10000,0x10000,-0x10000,-0x10000
for item in self._items:
x,y,w,h = item.geometry()
minx = min(minx,x)
miny = min(miny,y)
maxx = max(maxx,x+w)
maxy = max(maxy,y+h)
return minx, miny, maxx-minx, maxy-miny
def update(self, *args, **kwargs):
ret = False
for i in self.children():
if i.layoutItemType == TTkK.WidgetItem and not i.isEmpty():
ret = ret or i.widget().update(*args, **kwargs)
# TODO: Have a look at this:
# i.getCanvas().top()
elif i.layoutItemType == TTkK.LayoutItem:
ret= ret or i.update(*args, **kwargs)
return ret
class TTkWidgetItem(TTkLayoutItem):
slots = (&#39;_widget&#39;)
def __init__(self, *args, **kwargs):
TTkLayoutItem.__init__(self, *args, **kwargs)
self._widget = kwargs.get(&#39;widget&#39;, None)
self.layoutItemType = TTkK.WidgetItem
def widget(self):
return self._widget
def isVisible(self): return self._widget.isVisible()
def isEmpty(self): return self._widget is None
def minimumSize(self) -&gt; int: return self._widget.minimumSize()
def minDimension(self,o)-&gt; int: return self._widget.minDimension(o)
def minimumHeight(self) -&gt; int: return self._widget.minimumHeight()
def minimumWidth(self) -&gt; int: return self._widget.minimumWidth()
def maximumSize(self) -&gt; int: return self._widget.maximumSize()
def maxDimension(self,o)-&gt; int: return self._widget.maxDimension(o)
def maximumHeight(self) -&gt; int: return self._widget.maximumHeight()
def maximumWidth(self) -&gt; int: return self._widget.maximumWidth()
def geometry(self): return self._widget.geometry()
def setGeometry(self, x, y, w, h):
self._widget.setGeometry(x, y, w, h)
#def update(self, *args, **kwargs):
# self.widget().update(*args, **kwargs)</code></pre>
</details>
</section>
<section>
</section>
<section>
</section>
<section>
</section>
<section>
<h2 class="section-title" id="header-classes">Classes</h2>
<dl>
<dt id="TermTk.TTkLayouts.layout.TTkLayout"><code class="flex name class">
<span>class <span class="ident">TTkLayout</span></span>
<span>(</span><span>*args, **kwargs)</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">class TTkLayout(TTkLayoutItem):
__slots__ = (&#39;_items&#39;, &#39;_zSortedItems&#39;, &#39;_parent&#39;)
def __init__(self, *args, **kwargs):
TTkLayoutItem.__init__(self, args, kwargs)
self._items = []
self._zSortedItems = []
self._parent = None
self.layoutItemType = TTkK.LayoutItem
def children(self):
return self._items
def count(self):
return len(self._items)
def itemAt(self, index):
if index &lt; len(self._items):
return self._items[index]
return 0
def setParent(self, parent):
if isinstance(parent, TTkLayoutItem):
self._parent = parent
else:
self._parent = TTkWidgetItem(widget=parent)
for item in self._items:
if item.layoutItemType == TTkK.LayoutItem:
item.setParent(self)
else:
item.widget().setParent(self.parentWidget())
def parentWidget(self):
if self._parent is None: return None
if self._parent.layoutItemType == TTkK.WidgetItem:
return self._parent.widget()
else:
return self._parent.parentWidget()
def _zSortItems(self):
self._zSortedItems = sorted(self._items, key=lambda item: item.z)
@property
def zSortedItems(self): return self._zSortedItems
def replaceItem(self, item, index):
self._items[index] = item
self._zSortItems()
self.update()
if item.layoutItemType == TTkK.LayoutItem:
item.setParent(self)
else:
item.widget().setParent(self.parentWidget())
if self.parentWidget():
self.parentWidget().update(repaint=True, updateLayout=True)
def addItem(self, item):
self._items.append(item)
self._zSortItems()
self.update()
if item.layoutItemType == TTkK.LayoutItem:
item.setParent(self)
else:
item.widget().setParent(self.parentWidget())
if self.parentWidget():
self.parentWidget().update(repaint=True, updateLayout=True)
def addWidget(self, widget):
if widget.parentWidget() is not None:
widget.parentWidget().removeWidget(self)
self.addItem(TTkWidgetItem(widget=widget))
def removeItem(self, item):
if item in self._items:
self._items.remove(item)
self._zSortItems()
def removeWidget(self, widget):
for item in self._items:
if item.layoutItemType == TTkK.WidgetItem and \
item.widget() == widget:
self.removeItem(item)
def findBranchWidget(self, widget):
for item in self._items:
if item.layoutItemType == TTkK.LayoutItem:
if item.findBranchWidget(widget) is not None:
return item
else:
if item.widget() == widget:
return item
return None
def raiseWidget(self, widget):
maxz = 0
item = self.findBranchWidget(widget)
for i in self._items:
maxz=max(i.z+1,maxz)
item.z = maxz
if item.layoutItemType == TTkK.LayoutItem:
item.raiseWidget(widget)
self._zSortItems()
def lowerWidget(self, widget):
minz = 0
item = self.findBranchWidget(widget)
for i in self._items:
minz=min(i.z-1,minz)
item.z = minz
if item.layoutItemType == TTkK.LayoutItem:
item.lowerWidget(widget)
self._zSortItems()
def setGeometry(self, x, y, w, h):
ax, ay, aw, ah = self.geometry()
if ax==x and ay==y and aw==w and ah==h: return
TTkLayoutItem.setGeometry(self, x, y, w, h)
self.update(repaint=True, updateLayout=True)
def groupMoveTo(self, x, y):
ox,oy,_,_ = self.fullWidgetAreaGeometry()
dx = x-ox
dy = y-oy
for item in self._items:
x,y,w,h = item.geometry()
item.setGeometry(x+dx,y+dy,w,h)
def fullWidgetAreaGeometry(self):
if not self._items: return 0,0,0,0
minx,miny,maxx,maxy = 0x10000,0x10000,-0x10000,-0x10000
for item in self._items:
x,y,w,h = item.geometry()
minx = min(minx,x)
miny = min(miny,y)
maxx = max(maxx,x+w)
maxy = max(maxy,y+h)
return minx, miny, maxx-minx, maxy-miny
def update(self, *args, **kwargs):
ret = False
for i in self.children():
if i.layoutItemType == TTkK.WidgetItem and not i.isEmpty():
ret = ret or i.widget().update(*args, **kwargs)
# TODO: Have a look at this:
# i.getCanvas().top()
elif i.layoutItemType == TTkK.LayoutItem:
ret= ret or i.update(*args, **kwargs)
return ret</code></pre>
</details>
<h3>Ancestors</h3>
<ul class="hlist">
<li><a title="TermTk.TTkLayouts.layout.TTkLayoutItem" href="#TermTk.TTkLayouts.layout.TTkLayoutItem">TTkLayoutItem</a></li>
</ul>
<h3>Subclasses</h3>
<ul class="hlist">
<li><a title="TermTk.TTkLayouts.gridlayout.TTkGridLayout" href="gridlayout.html#TermTk.TTkLayouts.gridlayout.TTkGridLayout">TTkGridLayout</a></li>
</ul>
<h3>Instance variables</h3>
<dl>
<dt id="TermTk.TTkLayouts.layout.TTkLayout.zSortedItems"><code class="name">var <span class="ident">zSortedItems</span></code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">@property
def zSortedItems(self): return self._zSortedItems</code></pre>
</details>
</dd>
</dl>
<h3>Methods</h3>
<dl>
<dt id="TermTk.TTkLayouts.layout.TTkLayout.addItem"><code class="name flex">
<span>def <span class="ident">addItem</span></span>(<span>self, item)</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def addItem(self, item):
self._items.append(item)
self._zSortItems()
self.update()
if item.layoutItemType == TTkK.LayoutItem:
item.setParent(self)
else:
item.widget().setParent(self.parentWidget())
if self.parentWidget():
self.parentWidget().update(repaint=True, updateLayout=True)</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkLayout.addWidget"><code class="name flex">
<span>def <span class="ident">addWidget</span></span>(<span>self, widget)</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def addWidget(self, widget):
if widget.parentWidget() is not None:
widget.parentWidget().removeWidget(self)
self.addItem(TTkWidgetItem(widget=widget))</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkLayout.children"><code class="name flex">
<span>def <span class="ident">children</span></span>(<span>self)</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def children(self):
return self._items</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkLayout.count"><code class="name flex">
<span>def <span class="ident">count</span></span>(<span>self)</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def count(self):
return len(self._items)</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkLayout.findBranchWidget"><code class="name flex">
<span>def <span class="ident">findBranchWidget</span></span>(<span>self, widget)</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def findBranchWidget(self, widget):
for item in self._items:
if item.layoutItemType == TTkK.LayoutItem:
if item.findBranchWidget(widget) is not None:
return item
else:
if item.widget() == widget:
return item
return None</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkLayout.fullWidgetAreaGeometry"><code class="name flex">
<span>def <span class="ident">fullWidgetAreaGeometry</span></span>(<span>self)</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def fullWidgetAreaGeometry(self):
if not self._items: return 0,0,0,0
minx,miny,maxx,maxy = 0x10000,0x10000,-0x10000,-0x10000
for item in self._items:
x,y,w,h = item.geometry()
minx = min(minx,x)
miny = min(miny,y)
maxx = max(maxx,x+w)
maxy = max(maxy,y+h)
return minx, miny, maxx-minx, maxy-miny</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkLayout.groupMoveTo"><code class="name flex">
<span>def <span class="ident">groupMoveTo</span></span>(<span>self, x, y)</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def groupMoveTo(self, x, y):
ox,oy,_,_ = self.fullWidgetAreaGeometry()
dx = x-ox
dy = y-oy
for item in self._items:
x,y,w,h = item.geometry()
item.setGeometry(x+dx,y+dy,w,h)</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkLayout.itemAt"><code class="name flex">
<span>def <span class="ident">itemAt</span></span>(<span>self, index)</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def itemAt(self, index):
if index &lt; len(self._items):
return self._items[index]
return 0</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkLayout.lowerWidget"><code class="name flex">
<span>def <span class="ident">lowerWidget</span></span>(<span>self, widget)</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def lowerWidget(self, widget):
minz = 0
item = self.findBranchWidget(widget)
for i in self._items:
minz=min(i.z-1,minz)
item.z = minz
if item.layoutItemType == TTkK.LayoutItem:
item.lowerWidget(widget)
self._zSortItems()</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkLayout.parentWidget"><code class="name flex">
<span>def <span class="ident">parentWidget</span></span>(<span>self)</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def parentWidget(self):
if self._parent is None: return None
if self._parent.layoutItemType == TTkK.WidgetItem:
return self._parent.widget()
else:
return self._parent.parentWidget()</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkLayout.raiseWidget"><code class="name flex">
<span>def <span class="ident">raiseWidget</span></span>(<span>self, widget)</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def raiseWidget(self, widget):
maxz = 0
item = self.findBranchWidget(widget)
for i in self._items:
maxz=max(i.z+1,maxz)
item.z = maxz
if item.layoutItemType == TTkK.LayoutItem:
item.raiseWidget(widget)
self._zSortItems()</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkLayout.removeItem"><code class="name flex">
<span>def <span class="ident">removeItem</span></span>(<span>self, item)</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def removeItem(self, item):
if item in self._items:
self._items.remove(item)
self._zSortItems()</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkLayout.removeWidget"><code class="name flex">
<span>def <span class="ident">removeWidget</span></span>(<span>self, widget)</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def removeWidget(self, widget):
for item in self._items:
if item.layoutItemType == TTkK.WidgetItem and \
item.widget() == widget:
self.removeItem(item)</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkLayout.replaceItem"><code class="name flex">
<span>def <span class="ident">replaceItem</span></span>(<span>self, item, index)</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def replaceItem(self, item, index):
self._items[index] = item
self._zSortItems()
self.update()
if item.layoutItemType == TTkK.LayoutItem:
item.setParent(self)
else:
item.widget().setParent(self.parentWidget())
if self.parentWidget():
self.parentWidget().update(repaint=True, updateLayout=True)</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkLayout.setGeometry"><code class="name flex">
<span>def <span class="ident">setGeometry</span></span>(<span>self, x, y, w, h)</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def setGeometry(self, x, y, w, h):
ax, ay, aw, ah = self.geometry()
if ax==x and ay==y and aw==w and ah==h: return
TTkLayoutItem.setGeometry(self, x, y, w, h)
self.update(repaint=True, updateLayout=True)</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkLayout.setParent"><code class="name flex">
<span>def <span class="ident">setParent</span></span>(<span>self, parent)</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def setParent(self, parent):
if isinstance(parent, TTkLayoutItem):
self._parent = parent
else:
self._parent = TTkWidgetItem(widget=parent)
for item in self._items:
if item.layoutItemType == TTkK.LayoutItem:
item.setParent(self)
else:
item.widget().setParent(self.parentWidget())</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkLayout.update"><code class="name flex">
<span>def <span class="ident">update</span></span>(<span>self, *args, **kwargs)</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def update(self, *args, **kwargs):
ret = False
for i in self.children():
if i.layoutItemType == TTkK.WidgetItem and not i.isEmpty():
ret = ret or i.widget().update(*args, **kwargs)
# TODO: Have a look at this:
# i.getCanvas().top()
elif i.layoutItemType == TTkK.LayoutItem:
ret= ret or i.update(*args, **kwargs)
return ret</code></pre>
</details>
</dd>
</dl>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkLayoutItem"><code class="flex name class">
<span>class <span class="ident">TTkLayoutItem</span></span>
<span>(</span><span>*args, **kwargs)</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">class TTkLayoutItem:
__slots__ = (
&#39;_x&#39;, &#39;_y&#39;, &#39;_z&#39;, &#39;_w&#39;, &#39;_h&#39;,
&#39;_row&#39;,&#39;_col&#39;,
&#39;_sMax&#39;, &#39;_sMaxVal&#39;,
&#39;_sMin&#39;, &#39;_sMinVal&#39;,
&#39;_alignment&#39;,
&#39;_layoutItemType&#39;)
def __init__(self, *args, **kwargs):
self._x, self._y = 0, 0
self._z = kwargs.get(&#39;z&#39;,0)
self._row = kwargs.get(&#39;row&#39;, 0)
self._col = kwargs.get(&#39;col&#39;, 0)
self._layoutItemType = kwargs.get(&#39;layoutItemType&#39;, TTkK.NONE)
self._alignment = kwargs.get(&#39;alignment&#39;, TTkK.NONE)
self._w, self._h = 0, 0
self._sMax, self._sMin = False, False
self._sMaxVal, self._sMinVal = 0, 0
def minimumSize(self):
return self.minimumWidth(), self.minimumHeight()
def minDimension(self,o)-&gt; int: return 0
def minimumHeight(self) -&gt; int: return 0
def minimumWidth(self) -&gt; int: return 0
def maximumSize(self):
return self.maximumWidth(), self.maximumHeight()
def maxDimension(self,o)-&gt; int: return 0x1000
def maximumHeight(self) -&gt; int: return 0x10000
def maximumWidth(self) -&gt; int: return 0x10000
def geometry(self):
return self._x, self._y, self._w, self._h
def setGeometry(self, x, y, w, h):
self._x = x
self._y = y
self._w = w
self._h = h
@property
def z(self): return self._z
@z.setter
def z(self, z): self._z = z
@property
def layoutItemType(self): return self._layoutItemType
@layoutItemType.setter
def layoutItemType(self, t): self._layoutItemType = t</code></pre>
</details>
<h3>Subclasses</h3>
<ul class="hlist">
<li><a title="TermTk.TTkLayouts.layout.TTkLayout" href="#TermTk.TTkLayouts.layout.TTkLayout">TTkLayout</a></li>
<li><a title="TermTk.TTkLayouts.layout.TTkWidgetItem" href="#TermTk.TTkLayouts.layout.TTkWidgetItem">TTkWidgetItem</a></li>
</ul>
<h3>Instance variables</h3>
<dl>
<dt id="TermTk.TTkLayouts.layout.TTkLayoutItem.layoutItemType"><code class="name">var <span class="ident">layoutItemType</span></code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">@property
def layoutItemType(self): return self._layoutItemType</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkLayoutItem.z"><code class="name">var <span class="ident">z</span></code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">@property
def z(self): return self._z</code></pre>
</details>
</dd>
</dl>
<h3>Methods</h3>
<dl>
<dt id="TermTk.TTkLayouts.layout.TTkLayoutItem.geometry"><code class="name flex">
<span>def <span class="ident">geometry</span></span>(<span>self)</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def geometry(self):
return self._x, self._y, self._w, self._h</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkLayoutItem.maxDimension"><code class="name flex">
<span>def <span class="ident">maxDimension</span></span>(<span>self, o) ‑> int</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def maxDimension(self,o)-&gt; int: return 0x1000</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkLayoutItem.maximumHeight"><code class="name flex">
<span>def <span class="ident">maximumHeight</span></span>(<span>self) ‑> int</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def maximumHeight(self) -&gt; int: return 0x10000</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkLayoutItem.maximumSize"><code class="name flex">
<span>def <span class="ident">maximumSize</span></span>(<span>self)</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def maximumSize(self):
return self.maximumWidth(), self.maximumHeight()</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkLayoutItem.maximumWidth"><code class="name flex">
<span>def <span class="ident">maximumWidth</span></span>(<span>self) ‑> int</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def maximumWidth(self) -&gt; int: return 0x10000</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkLayoutItem.minDimension"><code class="name flex">
<span>def <span class="ident">minDimension</span></span>(<span>self, o) ‑> int</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def minDimension(self,o)-&gt; int: return 0</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkLayoutItem.minimumHeight"><code class="name flex">
<span>def <span class="ident">minimumHeight</span></span>(<span>self) ‑> int</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def minimumHeight(self) -&gt; int: return 0</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkLayoutItem.minimumSize"><code class="name flex">
<span>def <span class="ident">minimumSize</span></span>(<span>self)</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def minimumSize(self):
return self.minimumWidth(), self.minimumHeight()</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkLayoutItem.minimumWidth"><code class="name flex">
<span>def <span class="ident">minimumWidth</span></span>(<span>self) ‑> int</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def minimumWidth(self) -&gt; int: return 0</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkLayoutItem.setGeometry"><code class="name flex">
<span>def <span class="ident">setGeometry</span></span>(<span>self, x, y, w, h)</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def setGeometry(self, x, y, w, h):
self._x = x
self._y = y
self._w = w
self._h = h</code></pre>
</details>
</dd>
</dl>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkWidgetItem"><code class="flex name class">
<span>class <span class="ident">TTkWidgetItem</span></span>
<span>(</span><span>*args, **kwargs)</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">class TTkWidgetItem(TTkLayoutItem):
slots = (&#39;_widget&#39;)
def __init__(self, *args, **kwargs):
TTkLayoutItem.__init__(self, *args, **kwargs)
self._widget = kwargs.get(&#39;widget&#39;, None)
self.layoutItemType = TTkK.WidgetItem
def widget(self):
return self._widget
def isVisible(self): return self._widget.isVisible()
def isEmpty(self): return self._widget is None
def minimumSize(self) -&gt; int: return self._widget.minimumSize()
def minDimension(self,o)-&gt; int: return self._widget.minDimension(o)
def minimumHeight(self) -&gt; int: return self._widget.minimumHeight()
def minimumWidth(self) -&gt; int: return self._widget.minimumWidth()
def maximumSize(self) -&gt; int: return self._widget.maximumSize()
def maxDimension(self,o)-&gt; int: return self._widget.maxDimension(o)
def maximumHeight(self) -&gt; int: return self._widget.maximumHeight()
def maximumWidth(self) -&gt; int: return self._widget.maximumWidth()
def geometry(self): return self._widget.geometry()
def setGeometry(self, x, y, w, h):
self._widget.setGeometry(x, y, w, h)</code></pre>
</details>
<h3>Ancestors</h3>
<ul class="hlist">
<li><a title="TermTk.TTkLayouts.layout.TTkLayoutItem" href="#TermTk.TTkLayouts.layout.TTkLayoutItem">TTkLayoutItem</a></li>
</ul>
<h3>Class variables</h3>
<dl>
<dt id="TermTk.TTkLayouts.layout.TTkWidgetItem.slots"><code class="name">var <span class="ident">slots</span></code></dt>
<dd>
<div class="desc"></div>
</dd>
</dl>
<h3>Methods</h3>
<dl>
<dt id="TermTk.TTkLayouts.layout.TTkWidgetItem.geometry"><code class="name flex">
<span>def <span class="ident">geometry</span></span>(<span>self)</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def geometry(self): return self._widget.geometry()</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkWidgetItem.isEmpty"><code class="name flex">
<span>def <span class="ident">isEmpty</span></span>(<span>self)</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def isEmpty(self): return self._widget is None</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkWidgetItem.isVisible"><code class="name flex">
<span>def <span class="ident">isVisible</span></span>(<span>self)</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def isVisible(self): return self._widget.isVisible()</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkWidgetItem.maxDimension"><code class="name flex">
<span>def <span class="ident">maxDimension</span></span>(<span>self, o) ‑> int</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def maxDimension(self,o)-&gt; int: return self._widget.maxDimension(o)</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkWidgetItem.maximumHeight"><code class="name flex">
<span>def <span class="ident">maximumHeight</span></span>(<span>self) ‑> int</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def maximumHeight(self) -&gt; int: return self._widget.maximumHeight()</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkWidgetItem.maximumSize"><code class="name flex">
<span>def <span class="ident">maximumSize</span></span>(<span>self) ‑> int</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def maximumSize(self) -&gt; int: return self._widget.maximumSize()</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkWidgetItem.maximumWidth"><code class="name flex">
<span>def <span class="ident">maximumWidth</span></span>(<span>self) ‑> int</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def maximumWidth(self) -&gt; int: return self._widget.maximumWidth()</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkWidgetItem.minDimension"><code class="name flex">
<span>def <span class="ident">minDimension</span></span>(<span>self, o) ‑> int</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def minDimension(self,o)-&gt; int: return self._widget.minDimension(o)</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkWidgetItem.minimumHeight"><code class="name flex">
<span>def <span class="ident">minimumHeight</span></span>(<span>self) ‑> int</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def minimumHeight(self) -&gt; int: return self._widget.minimumHeight()</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkWidgetItem.minimumSize"><code class="name flex">
<span>def <span class="ident">minimumSize</span></span>(<span>self) ‑> int</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def minimumSize(self) -&gt; int: return self._widget.minimumSize()</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkWidgetItem.minimumWidth"><code class="name flex">
<span>def <span class="ident">minimumWidth</span></span>(<span>self) ‑> int</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def minimumWidth(self) -&gt; int: return self._widget.minimumWidth()</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkWidgetItem.setGeometry"><code class="name flex">
<span>def <span class="ident">setGeometry</span></span>(<span>self, x, y, w, h)</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def setGeometry(self, x, y, w, h):
self._widget.setGeometry(x, y, w, h)</code></pre>
</details>
</dd>
<dt id="TermTk.TTkLayouts.layout.TTkWidgetItem.widget"><code class="name flex">
<span>def <span class="ident">widget</span></span>(<span>self)</span>
</code></dt>
<dd>
<div class="desc"></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def widget(self):
return self._widget</code></pre>
</details>
</dd>
</dl>
</dd>
</dl>
</section>
</article>
<nav id="sidebar">
<h1>Index</h1>
<div class="toc">
<ul>
<li><a href="#layout">Layout</a></li>
</ul>
</div>
<ul id="index">
<li><h3>Super-module</h3>
<ul>
<li><code><a title="TermTk.TTkLayouts" href="index.html">TermTk.TTkLayouts</a></code></li>
</ul>
</li>
<li><h3><a href="#header-classes">Classes</a></h3>
<ul>
<li>
<h4><code><a title="TermTk.TTkLayouts.layout.TTkLayout" href="#TermTk.TTkLayouts.layout.TTkLayout">TTkLayout</a></code></h4>
<ul class="">
<li><code><a title="TermTk.TTkLayouts.layout.TTkLayout.addItem" href="#TermTk.TTkLayouts.layout.TTkLayout.addItem">addItem</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkLayout.addWidget" href="#TermTk.TTkLayouts.layout.TTkLayout.addWidget">addWidget</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkLayout.children" href="#TermTk.TTkLayouts.layout.TTkLayout.children">children</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkLayout.count" href="#TermTk.TTkLayouts.layout.TTkLayout.count">count</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkLayout.findBranchWidget" href="#TermTk.TTkLayouts.layout.TTkLayout.findBranchWidget">findBranchWidget</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkLayout.fullWidgetAreaGeometry" href="#TermTk.TTkLayouts.layout.TTkLayout.fullWidgetAreaGeometry">fullWidgetAreaGeometry</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkLayout.groupMoveTo" href="#TermTk.TTkLayouts.layout.TTkLayout.groupMoveTo">groupMoveTo</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkLayout.itemAt" href="#TermTk.TTkLayouts.layout.TTkLayout.itemAt">itemAt</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkLayout.lowerWidget" href="#TermTk.TTkLayouts.layout.TTkLayout.lowerWidget">lowerWidget</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkLayout.parentWidget" href="#TermTk.TTkLayouts.layout.TTkLayout.parentWidget">parentWidget</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkLayout.raiseWidget" href="#TermTk.TTkLayouts.layout.TTkLayout.raiseWidget">raiseWidget</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkLayout.removeItem" href="#TermTk.TTkLayouts.layout.TTkLayout.removeItem">removeItem</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkLayout.removeWidget" href="#TermTk.TTkLayouts.layout.TTkLayout.removeWidget">removeWidget</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkLayout.replaceItem" href="#TermTk.TTkLayouts.layout.TTkLayout.replaceItem">replaceItem</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkLayout.setGeometry" href="#TermTk.TTkLayouts.layout.TTkLayout.setGeometry">setGeometry</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkLayout.setParent" href="#TermTk.TTkLayouts.layout.TTkLayout.setParent">setParent</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkLayout.update" href="#TermTk.TTkLayouts.layout.TTkLayout.update">update</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkLayout.zSortedItems" href="#TermTk.TTkLayouts.layout.TTkLayout.zSortedItems">zSortedItems</a></code></li>
</ul>
</li>
<li>
<h4><code><a title="TermTk.TTkLayouts.layout.TTkLayoutItem" href="#TermTk.TTkLayouts.layout.TTkLayoutItem">TTkLayoutItem</a></code></h4>
<ul class="two-column">
<li><code><a title="TermTk.TTkLayouts.layout.TTkLayoutItem.geometry" href="#TermTk.TTkLayouts.layout.TTkLayoutItem.geometry">geometry</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkLayoutItem.layoutItemType" href="#TermTk.TTkLayouts.layout.TTkLayoutItem.layoutItemType">layoutItemType</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkLayoutItem.maxDimension" href="#TermTk.TTkLayouts.layout.TTkLayoutItem.maxDimension">maxDimension</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkLayoutItem.maximumHeight" href="#TermTk.TTkLayouts.layout.TTkLayoutItem.maximumHeight">maximumHeight</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkLayoutItem.maximumSize" href="#TermTk.TTkLayouts.layout.TTkLayoutItem.maximumSize">maximumSize</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkLayoutItem.maximumWidth" href="#TermTk.TTkLayouts.layout.TTkLayoutItem.maximumWidth">maximumWidth</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkLayoutItem.minDimension" href="#TermTk.TTkLayouts.layout.TTkLayoutItem.minDimension">minDimension</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkLayoutItem.minimumHeight" href="#TermTk.TTkLayouts.layout.TTkLayoutItem.minimumHeight">minimumHeight</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkLayoutItem.minimumSize" href="#TermTk.TTkLayouts.layout.TTkLayoutItem.minimumSize">minimumSize</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkLayoutItem.minimumWidth" href="#TermTk.TTkLayouts.layout.TTkLayoutItem.minimumWidth">minimumWidth</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkLayoutItem.setGeometry" href="#TermTk.TTkLayouts.layout.TTkLayoutItem.setGeometry">setGeometry</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkLayoutItem.z" href="#TermTk.TTkLayouts.layout.TTkLayoutItem.z">z</a></code></li>
</ul>
</li>
<li>
<h4><code><a title="TermTk.TTkLayouts.layout.TTkWidgetItem" href="#TermTk.TTkLayouts.layout.TTkWidgetItem">TTkWidgetItem</a></code></h4>
<ul class="two-column">
<li><code><a title="TermTk.TTkLayouts.layout.TTkWidgetItem.geometry" href="#TermTk.TTkLayouts.layout.TTkWidgetItem.geometry">geometry</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkWidgetItem.isEmpty" href="#TermTk.TTkLayouts.layout.TTkWidgetItem.isEmpty">isEmpty</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkWidgetItem.isVisible" href="#TermTk.TTkLayouts.layout.TTkWidgetItem.isVisible">isVisible</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkWidgetItem.maxDimension" href="#TermTk.TTkLayouts.layout.TTkWidgetItem.maxDimension">maxDimension</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkWidgetItem.maximumHeight" href="#TermTk.TTkLayouts.layout.TTkWidgetItem.maximumHeight">maximumHeight</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkWidgetItem.maximumSize" href="#TermTk.TTkLayouts.layout.TTkWidgetItem.maximumSize">maximumSize</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkWidgetItem.maximumWidth" href="#TermTk.TTkLayouts.layout.TTkWidgetItem.maximumWidth">maximumWidth</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkWidgetItem.minDimension" href="#TermTk.TTkLayouts.layout.TTkWidgetItem.minDimension">minDimension</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkWidgetItem.minimumHeight" href="#TermTk.TTkLayouts.layout.TTkWidgetItem.minimumHeight">minimumHeight</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkWidgetItem.minimumSize" href="#TermTk.TTkLayouts.layout.TTkWidgetItem.minimumSize">minimumSize</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkWidgetItem.minimumWidth" href="#TermTk.TTkLayouts.layout.TTkWidgetItem.minimumWidth">minimumWidth</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkWidgetItem.setGeometry" href="#TermTk.TTkLayouts.layout.TTkWidgetItem.setGeometry">setGeometry</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkWidgetItem.slots" href="#TermTk.TTkLayouts.layout.TTkWidgetItem.slots">slots</a></code></li>
<li><code><a title="TermTk.TTkLayouts.layout.TTkWidgetItem.widget" href="#TermTk.TTkLayouts.layout.TTkWidgetItem.widget">widget</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</nav>
</main>
<footer id="footer">
<p>Generated by <a href="https://pdoc3.github.io/pdoc"><cite>pdoc</cite> 0.9.2</a>.</p>
</footer>
</body>
</html>