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.
- dhxpyt-0.4.2/MANIFEST.in +4 -0
- dhxpyt-0.4.2/PKG-INFO +8 -0
- dhxpyt-0.4.2/README.md +1 -0
- dhxpyt-0.4.2/dhxpyt/__init__.py +0 -0
- dhxpyt-0.4.2/dhxpyt/accordion.py +21 -0
- dhxpyt-0.4.2/dhxpyt/form.py +2355 -0
- dhxpyt-0.4.2/dhxpyt/grid.py +998 -0
- dhxpyt-0.4.2/dhxpyt/layout.py +477 -0
- dhxpyt-0.4.2/dhxpyt/sidebar.py +255 -0
- dhxpyt-0.4.2/dhxpyt/toolbar.py +197 -0
- dhxpyt-0.4.2/dhxpyt/window.py +293 -0
- dhxpyt-0.4.2/dhxpyt.egg-info/PKG-INFO +8 -0
- dhxpyt-0.4.2/dhxpyt.egg-info/SOURCES.txt +16 -0
- dhxpyt-0.4.2/dhxpyt.egg-info/dependency_links.txt +1 -0
- dhxpyt-0.4.2/dhxpyt.egg-info/requires.txt +1 -0
- dhxpyt-0.4.2/dhxpyt.egg-info/top_level.txt +1 -0
- dhxpyt-0.4.2/setup.cfg +4 -0
- dhxpyt-0.4.2/setup.py +29 -0
dhxpyt-0.4.2/MANIFEST.in
ADDED
dhxpyt-0.4.2/PKG-INFO
ADDED
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)
|