Skip to content

Commit

Permalink
Remove get_css_style since replacey by CssStyle
Browse files Browse the repository at this point in the history
We now use CssStyle to embedd it into the widgets.
  • Loading branch information
agoscinski committed Dec 19, 2024
1 parent 0c95cbd commit 1f81216
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
3 changes: 1 addition & 2 deletions src/scwidgets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
__version__ = "0.1.0-dev0"
__authors__ = "the scicode-widgets developer team"

from ._css_style import CssStyle, get_css_style
from ._css_style import CssStyle
from .check import * # noqa: F403
from .code import * # noqa: F403
from .cue import * # noqa: F403
Expand All @@ -10,7 +10,6 @@
__all__ = [ # noqa: F405
# css_style
"CssStyle",
"get_css_style",
# cue
"CueWidget",
"CheckCueBox",
Expand Down
7 changes: 0 additions & 7 deletions src/scwidgets/_css_style.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,3 @@ def __init__(self, preamble: str = ""):
style_txt = file.read()

HTML.__init__(self, preamble + "<style>" + style_txt + "</style>")


def get_css_style() -> HTML:
return CssStyle(
preamble="HTML with scicode-widget css style sheet. "
"Please keep this cell output alive."
)
1 change: 1 addition & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from scwidgets import ( # noqa: F401
CssStyle,
AssertResult,
Check,
CheckableWidget,
Expand Down

0 comments on commit 1f81216

Please sign in to comment.