Commit 7859d32a authored by Yakubov, Sergey's avatar Yakubov, Sergey
Browse files

do not initialize state variable

parent 9ea447e9
Loading
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -44,11 +44,6 @@ class Communicator:
        # GUI element (via it's name in Trame state object)
        # and a linked_object (passed during bind creation from ViewModel side)
        self.state_variable_name = state_variable_name
        if state_variable_name:
            self.state[self.state_variable_name] = {}
        for attribute_name in self.linked_object_attributes or []:
            name_in_state = self.get_name_in_state(attribute_name)
            self.state[name_in_state] = ""

        # this updates ViewModel on state change
        if self.viewmodel_linked_object:
+1 −1
Original line number Diff line number Diff line
[tool.poetry]
name = "py-mvvm"
version = "0.1.1"
version = "0.1.2"
description = "A Python Package for Model-View-ViewModel pattern"
authors = ["Yakubov, Sergey <yakubovs@ornl.gov>"]
license = "MIT"