pychess.widgets.pydock package
Submodules
pychess.widgets.pydock.ArrowButton module
pychess.widgets.pydock.HighlightArea module
- pychess.widgets.pydock.HighlightArea.ceil(f)
pychess.widgets.pydock.OverlayWindow module
pychess.widgets.pydock.PyDockComposite module
- class pychess.widgets.pydock.PyDockComposite.PyDockComposite(position, perspective)
Bases:
Alignment
- changeComponent(old, new)
- dock(widget, position, title, id)
- getComponents()
- getPosition()
Returns NORTH or SOUTH if the children are packed vertically. Returns WEST or EAST if the children are packed horizontally. Returns CENTER if there is only one child
- initChildren(old, new, preserve_dimensions=False)
- removeComponent(component)
pychess.widgets.pydock.PyDockLeaf module
- class pychess.widgets.pydock.PyDockLeaf.PyDockLeaf(widget, title, id, perspective)
Bases:
pychess.widgets.pydock.__init__.TabReceiver
- dock(widget, position, title, id)
if position == CENTER: Add a new widget to the leaf-notebook if position != CENTER: Fork this leaf into two
- getCurrentPanel()
- getPanels()
Returns a list of (widget, title, id) tuples
- hideArrows()
- isDockable()
- setCurrentPanel(id)
Returns the panel id currently shown
- setDockable(dockable)
If the leaf is not dockable it won’t be moveable and won’t accept new panels
- showArrows()
- undock(widget)
remove the widget from the leaf-notebook if this was the only widget, remove this leaf from its owner
- zoomDown()
- zoomUp()
pychess.widgets.pydock.PyDockTop module
- class pychess.widgets.pydock.PyDockTop.PyDockTop(id, perspective)
Bases:
pychess.widgets.pydock.PyDockComposite.PyDockComposite
,pychess.widgets.pydock.__init__.TabReceiver
- addComponent(widget)
- changeComponent(old, new)
- clear()
- dock(widget, position, title, id)
- getComponents()
- getPosition()
Returns NORTH or SOUTH if the children are packed vertically. Returns WEST or EAST if the children are packed horizontally. Returns CENTER if there is only one child
- hideArrows()
- loadFromXML(xmlpath, idToWidget)
idTowidget is a dictionary {id: (widget,title)} asserts that self.id is in the xmlfile
- old2new(name)
After 0.99.0 database perspective panel names changed
- removeComponent(widget)
- saveToXML(xmlpath)
- <docks>
- <dock id=”x”>
- <v pos=”200”>
- <leaf current=”x” dockable=”False”>
<panel id=”x” />
</leaf> <h pos=”200”>
- <leaf current=”y” dockable=”True”>
<panel id=”y” /> <panel id=”z” />
</leaf> <leaf current=”y” dockable=”True”>
<panel id=”y” />
</leaf>
</h>
</v>
</dock>
</docks>
- showArrows()
pychess.widgets.pydock.StarArrowButton module
- pychess.widgets.pydock.StarArrowButton.ceil(num)