PropertyForm

class compas_view2.forms.PropertyForm(title, obj=None, on_update=None)[source]

Bases: QDockWidget

Form class for real-time editing of objects

Parameters:

title (string) – The title of the form

Attributes:

on_update (function) – the function to be called when object attributes are updated from the form

Methods

add_collapsiblebox

add_label

inputs

Creates layout for input fields

map_bool

Map color input field to an object attribute

map_color

Map color input field to an object attribute

map_dict

Map a dictionary input

map_inputs

Map inputs of supported data type

map_list

Map a list of numbers

map_number

Map number input field to an object attribute

map_object

Map the attributs of an object

map_transform

Map the transformation of an object

map_vector_list

Map a list of vetors

set_object

update

Inherited Methods

acceptDrops

accessibleDescription

accessibleName

actionEvent

actions

activateWindow

addAction

addActions

adjustSize

allowedAreas

autoFillBackground

backgroundRole

backingStore

baseSize

blockSignals

changeEvent

childAt

childEvent

children

childrenRect

childrenRegion

clearFocus

clearMask

close

closeEvent

colorCount

connect

connectNotify

contentsMargins

contentsRect

contextMenuEvent

contextMenuPolicy

create

createWinId

createWindowContainer

cursor

customEvent

deleteLater

depth

destroy

devType

devicePixelRatio

devicePixelRatioF

devicePixelRatioFScale

disconnect

disconnectNotify

dragEnterEvent

dragLeaveEvent

dragMoveEvent

dropEvent

dumpObjectInfo

dumpObjectTree

dynamicPropertyNames

effectiveWinId

emit

ensurePolished

enterEvent

event

eventFilter

features

find

findChild

findChildren

focusInEvent

focusNextChild

focusNextPrevChild

focusOutEvent

focusPolicy

focusPreviousChild

focusProxy

focusWidget

font

fontInfo

fontMetrics

foregroundRole

frameGeometry

frameSize

geometry

getContentsMargins

grab

grabGesture

grabKeyboard

grabMouse

grabShortcut

graphicsEffect

graphicsProxyWidget

hasFocus

hasHeightForWidth

hasMouseTracking

hasTabletTracking

height

heightForWidth

heightMM

hide

hideEvent

inherits

initPainter

initStyleOption

inputMethodEvent

inputMethodHints

inputMethodQuery

insertAction

insertActions

installEventFilter

internalWinId

isActiveWindow

isAncestorOf

isAreaAllowed

isEnabled

isEnabledTo

isEnabledToTLW

isFloating

isFullScreen

isHidden

isLeftToRight

isMaximized

isMinimized

isModal

isRightToLeft

isSignalConnected

isTopLevel

isVisible

isVisibleTo

isWidgetType

isWindow

isWindowModified

isWindowType

keyPressEvent

keyReleaseEvent

keyboardGrabber

killTimer

layout

layoutDirection

leaveEvent

locale

logicalDpiX

logicalDpiY

lower

mapFrom

mapFromGlobal

mapFromParent

mapTo

mapToGlobal

mapToParent

mask

maximumHeight

maximumSize

maximumWidth

metaObject

metric

minimumHeight

minimumSize

minimumSizeHint

minimumWidth

mouseDoubleClickEvent

mouseGrabber

mouseMoveEvent

mousePressEvent

mouseReleaseEvent

move

moveEvent

moveToThread

nativeEvent

nativeParentWidget

nextInFocusChain

normalGeometry

objectName

overrideWindowFlags

overrideWindowState

paintEngine

paintEvent

paintingActive

palette

parent

parentWidget

physicalDpiX

physicalDpiY

pos

previousInFocusChain

property

raise_

receivers

rect

redirected

registerUserData

releaseKeyboard

releaseMouse

releaseShortcut

removeAction

removeEventFilter

render

repaint

resize

resizeEvent

restoreGeometry

saveGeometry

screen

scroll

sender

senderSignalIndex

setAcceptDrops

setAccessibleDescription

setAccessibleName

setAllowedAreas

setAttribute

setAutoFillBackground

setBackgroundRole

setBaseSize

setContentsMargins

setContextMenuPolicy

setCursor

setDisabled

setEnabled

setFeatures

setFixedHeight

setFixedSize

setFixedWidth

setFloating

setFocus

setFocusPolicy

setFocusProxy

setFont

setForegroundRole

setGeometry

setGraphicsEffect

setHidden

setInputMethodHints

setLayout

setLayoutDirection

setLocale

setMask

setMaximumHeight

setMaximumSize

setMaximumWidth

setMinimumHeight

setMinimumSize

setMinimumWidth

setMouseTracking

setObjectName

setPalette

setParent

setProperty

setShortcutAutoRepeat

setShortcutEnabled

setSizeIncrement

setSizePolicy

setStatusTip

setStyle

setStyleSheet

setTabOrder

setTabletTracking

setTitleBarWidget

setToolTip

setToolTipDuration

setUpdatesEnabled

setVisible

setWhatsThis

setWidget

setWindowFilePath

setWindowFlag

setWindowFlags

setWindowIcon

setWindowIconText

setWindowModality

setWindowModified

setWindowOpacity

setWindowRole

setWindowState

setWindowTitle

sharedPainter

show

showEvent

showFullScreen

showMaximized

showMinimized

showNormal

signalsBlocked

size

sizeHint

sizeIncrement

sizePolicy

stackUnder

startTimer

statusTip

style

styleSheet

tabletEvent

testAttribute

thread

timerEvent

titleBarWidget

toggleViewAction

toolTip

toolTipDuration

topLevelWidget

tr

underMouse

ungrabGesture

unsetCursor

unsetLayoutDirection

unsetLocale

updateGeometry

updateMicroFocus

updatesEnabled

visibleRegion

whatsThis

wheelEvent

widget

width

widthMM

winId

window

windowFilePath

windowFlags

windowHandle

windowIcon

windowIconText

windowModality

windowOpacity

windowRole

windowState

windowTitle

windowType

x

y