module timelinelib.wxgui.dialogs.editcontainer.controller

class timelinelib.wxgui.dialogs.editcontainer.controller.EditContainerDialogController[source]

Bases: humblewx.Controller

This controller is responsible for two things:

  1. Creating a new container

  2. Updating properties of an existing container

When creating a new container the result is NOT stored in the database. This happens later when the first event added to the container is saved to the database.

The reason for this behavior is that we don’t want to have empty containers in the database. When updating the properties of an existing container the changes are stored in the timeline database.

on_init(db, container)[source]
on_ok_clicked(event)[source]
get_container()[source]