zasim.gui.displaywidgets - Widgets for displaying configurations

Inheritance diagram of zasim.gui.displaywidgets

class zasim.gui.displaywidgets.DisplayWidget(simulator, width=None, height=None, **kwargs)[source]

Bases: PySide.QtGui.QWidget

A Display widget for one- and twodimensional configs.

Based on zasim.display.qt

Initialize the DisplayWidget.

Parameters:
  • width – The width of the image to build.
  • height – The height of the image to build.
switch_simulator(simulator)[source]

This method replaces the previous simulator with simulator.

set_scale(scale)[source]
paintEvent(event)[source]
mousePressEvent(event)[source]
mouseReleaseEvent(event)[source]
leaveEvent(event)[source]
mouseMoveEvent(event)[source]
wheelEvent(event)[source]
export(filename)[source]
staticMetaObject = <PySide.QtCore.QMetaObject object at 0x46871b8>
class zasim.gui.displaywidgets.NewDisplayWidget(simulator, palette=None, rects=None, scale=0.1, **kwargs)[source]

Bases: PySide.QtGui.QWidget

A Display widget for one- and twodimensional configs utilising a palette of images.

Based on zasim.display.qt

Initialize the DisplayWidget.

Parameters:
  • palette – The palette image to use.
  • rects – The tile atlas to use.
set_scale(scale)[source]
size_change()[source]
staticMetaObject = <PySide.QtCore.QMetaObject object at 0x4687200>
update_display()[source]
paintEvent(event)[source]

Previous topic

zasim.gui.reset - Create/load configs and reset simulators

Next topic

zasim.gui.histogram - Histogram display widgets

This Page