dhxpyt 0.4.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4 @@
1
+ recursive-include dhx_pytincture_widgetset/dhxpyt/widgetsets/dhxsrc/ *
2
+ recursive-include dhx_pytincture_widgetset/dhxpyt/ *.html
3
+ recursive-include dhx_pytincture_widgetset/dhxpyt/ *.js
4
+ recursive-include dhx_pytincture_widgetset/dhxpyt/ *.css
dhxpyt-0.4.2/PKG-INFO ADDED
@@ -0,0 +1,8 @@
1
+ Metadata-Version: 2.1
2
+ Name: dhxpyt
3
+ Version: 0.4.2
4
+ Summary: DHTMLX widgetset
5
+ Home-page: https://github.com/pytincture/dhx_pytincture_widgetset
6
+ Description-Content-Type: text/markdown
7
+
8
+ ##DHTMLX PyTincture Widgetset
dhxpyt-0.4.2/README.md ADDED
@@ -0,0 +1 @@
1
+ ##DHTMLX PyTincture Widgetset
File without changes
@@ -0,0 +1,21 @@
1
+ from typing import Any, Callable, Dict, List, Optional, Union
2
+ import js
3
+ import json
4
+ from enum import Enum
5
+ from pyodide.ffi import create_proxy
6
+
7
+ class PTAccordion:
8
+ """
9
+ Accordion widget
10
+ """
11
+
12
+ def __init__(self, widget_config: Dict[str, Any]) -> None:
13
+ self.widget_config = widget_config
14
+ self.toolbar = js.PTAccordion.new(None, js.JSON.parse(json.dumps(widget_config)))
15
+ # Initialize your accordion here using widget_config
16
+
17
+ def collapse(self, id=None) -> None:
18
+ self.accordion.collapse(id)
19
+
20
+ def expand(self, id=None) -> None:
21
+ self.accordion.expand(id)