Skip to content

Commit 8fab055

Browse files
committed
Use @observe from enaml that ignores create events
1 parent e74c47e commit 8fab055

File tree

5 files changed

+7
-9
lines changed

5 files changed

+7
-9
lines changed

web/components/code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
@author: jrm
1111
"""
1212

13-
from atom.api import Str, Typed, ForwardTyped, ChangeDict, observe
14-
from enaml.core.declarative import d_
13+
from atom.api import Str, Typed, ForwardTyped, ChangeDict
14+
from enaml.core.declarative import d_, observe
1515
from .raw import Raw, ProxyRawNode
1616

1717

web/components/html.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@
2222
ForwardTyped,
2323
Typed,
2424
Coerced,
25-
observe,
2625
ChangeDict,
2726
)
28-
from enaml.core.declarative import d_, Declarative
27+
from enaml.core.declarative import d_, Declarative, observe
2928
from enaml.widgets.toolkit_object import ToolkitObject, ProxyToolkitObject
3029
from web.core.utils import InternStr
3130

web/components/ipynb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from __future__ import annotations
1414

1515
from atom.api import Int, Typed, ForwardTyped, ChangeDict, observe
16-
from enaml.core.declarative import d_
16+
from enaml.core.declarative import d_, observe
1717
from .raw import Raw, ProxyRawNode
1818

1919

web/components/md.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@
2020
List,
2121
Dict,
2222
ChangeDict,
23-
observe,
2423
)
25-
from enaml.core.declarative import d_
24+
from enaml.core.declarative import d_, observe
2625
from .raw import Raw, ProxyRawNode
2726

2827

web/components/raw.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
from __future__ import annotations
1414

1515
from typing import Union, Optional
16-
from atom.api import ForwardTyped, Instance, Typed, ChangeDict, observe
16+
from atom.api import ForwardTyped, Instance, Typed, ChangeDict
1717
from lxml.etree import _Element as Element
18-
from enaml.core.declarative import d_
18+
from enaml.core.declarative import d_, observe
1919
from .html import Tag, ProxyTag
2020

2121
SourceType = Optional[Union[str, list[Element], Element]]

0 commit comments

Comments
 (0)