widgets.add_data_interface_widget

Contains the UI and the functionality for the widget that is shown to user when a new Data Interface is created.

author:
  1. Savolainen (VTT)
date:

13.6.2019

Module Contents

class widgets.add_data_interface_widget.AddDataInterfaceWidget(toolbox, x, y)[source]

Bases: PySide2.QtWidgets.QWidget

A widget that queries user’s preferences for a new item.

toolbox

toolbox widget

Type:ToolboxUI
x

X coordinate of new item

Type:int
y

Y coordinate of new item

Type:int
connect_signals(self)[source]

Connect signals to slots.

name_changed(self)[source]

Update label to show upcoming folder name.

ok_clicked(self)[source]

Check that given item name is valid and add it to project.

call_add_item(self)[source]

Creates new Item according to user’s selections.

keyPressEvent(self, e)[source]

Close Setup form when escape key is pressed.

Parameters:e (QKeyEvent) – Received key press event.
closeEvent(self, event=None)[source]

Handle close window.

Parameters:event (QEvent) – Closing event if ‘X’ is clicked.