pgwidgets-python 0.4.1__py3-none-any.whl → 0.4.3__py3-none-any.whl
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.
- pgwidgets/async_/application.py +4 -3
- pgwidgets/async_/widget.py +30 -3
- pgwidgets/extras/file_browser.py +3 -3
- pgwidgets/method_types.py +8 -0
- pgwidgets/sync/application.py +4 -3
- pgwidgets/sync/widget.py +30 -2
- {pgwidgets_python-0.4.1.dist-info → pgwidgets_python-0.4.3.dist-info}/METADATA +2 -2
- {pgwidgets_python-0.4.1.dist-info → pgwidgets_python-0.4.3.dist-info}/RECORD +11 -11
- {pgwidgets_python-0.4.1.dist-info → pgwidgets_python-0.4.3.dist-info}/WHEEL +1 -1
- {pgwidgets_python-0.4.1.dist-info → pgwidgets_python-0.4.3.dist-info}/licenses/LICENSE.md +0 -0
- {pgwidgets_python-0.4.1.dist-info → pgwidgets_python-0.4.3.dist-info}/top_level.txt +0 -0
pgwidgets/async_/application.py
CHANGED
|
@@ -28,10 +28,10 @@ from pgwidgets_js import get_static_path, get_remote_html
|
|
|
28
28
|
from pgwidgets._json import JsonEncoder
|
|
29
29
|
from pgwidgets.defs import WIDGETS
|
|
30
30
|
from pgwidgets.method_types import (
|
|
31
|
-
SPECIAL_SETTERS, FIXED_SETTERS,
|
|
31
|
+
SPECIAL_SETTERS, FIXED_SETTERS,
|
|
32
32
|
STATE_SYNC_CALLBACKS, STATE_SYNC_REQUIRES_OPTION,
|
|
33
33
|
WIDGET_CALLBACK_SYNC, POST_CHILDREN_STATE_KEYS, ITEM_LIST_CONFIG,
|
|
34
|
-
CHILD_CLOSE_CALLBACKS,
|
|
34
|
+
CHILD_CLOSE_CALLBACKS,
|
|
35
35
|
TREE_OVERRIDE_REPLAY, colour_batches, JS_ONLY_METHODS,
|
|
36
36
|
coalesce_colour_calls,
|
|
37
37
|
BINARY_STATE_KEYS, _send_binary_auto,
|
|
@@ -622,7 +622,6 @@ class Session:
|
|
|
622
622
|
self._next_wid = js_next
|
|
623
623
|
return result
|
|
624
624
|
|
|
625
|
-
|
|
626
625
|
def _push(self, wid, method, *args):
|
|
627
626
|
"""Push a silent call to all browsers except the callback source.
|
|
628
627
|
Fire-and-forget: no result is awaited."""
|
|
@@ -795,6 +794,7 @@ class Session:
|
|
|
795
794
|
"method": method,
|
|
796
795
|
"args": list(args),
|
|
797
796
|
}, cls=JsonEncoder)
|
|
797
|
+
|
|
798
798
|
async def _pair(ws):
|
|
799
799
|
await ws.send(header)
|
|
800
800
|
await ws.send(data)
|
|
@@ -1842,6 +1842,7 @@ class Application:
|
|
|
1842
1842
|
asyncio.ensure_future(do_reconstruct())
|
|
1843
1843
|
else:
|
|
1844
1844
|
self._logger.info(f"Session {session.id} connected.")
|
|
1845
|
+
|
|
1845
1846
|
async def do_connect():
|
|
1846
1847
|
# Replay fonts before the user callback so any
|
|
1847
1848
|
# widget the user builds with ``set_font(family,
|
pgwidgets/async_/widget.py
CHANGED
|
@@ -15,7 +15,6 @@ from pgwidgets import tree_model
|
|
|
15
15
|
from pgwidgets.defs import WIDGETS, CALLBACK_METHODS, WIDGET_METHODS, CONTAINER_METHODS
|
|
16
16
|
from pgwidgets.method_types import (
|
|
17
17
|
classify_method, SETTER, GETTER, CHILD, ACTION, JS_ONLY,
|
|
18
|
-
CHILD_METHODS as CHILD_METHOD_TYPES,
|
|
19
18
|
FIXED_SETTERS, CLEAR_RESETS, ITEM_LIST_CONFIG,
|
|
20
19
|
REPLAY_METHODS, CHILD_SELECT_METHODS, TREE_VIEW_WIDGETS,
|
|
21
20
|
STATE_SYNC_CALLBACKS, STATE_SYNC_REQUIRES_OPTION,
|
|
@@ -146,6 +145,10 @@ class Widget:
|
|
|
146
145
|
# Store constructor info for reconstruction
|
|
147
146
|
self._constructor_args = tuple(args[:len(pos_names)])
|
|
148
147
|
self._constructor_options = dict(options)
|
|
148
|
+
if self._constructor_options.get("columns") is not None:
|
|
149
|
+
# the replay record, so keep it safe from the caller's edits
|
|
150
|
+
self._constructor_options["columns"] = tree_model.copy_tree(
|
|
151
|
+
self._constructor_options["columns"])
|
|
149
152
|
|
|
150
153
|
# Store constructor args as initial state (None means "not
|
|
151
154
|
# provided" since generated __init__ defaults all args to None)
|
|
@@ -154,6 +157,10 @@ class Widget:
|
|
|
154
157
|
self._state[name] = args[i]
|
|
155
158
|
for k, v in options.items():
|
|
156
159
|
if v is not None:
|
|
160
|
+
# the column list is edited in place later (see
|
|
161
|
+
# _add_tree_model_methods), so keep a copy of the caller's
|
|
162
|
+
if k == "columns":
|
|
163
|
+
v = tree_model.copy_tree(v)
|
|
157
164
|
self._state[k] = v
|
|
158
165
|
|
|
159
166
|
# Apply default state for keys not set by constructor
|
|
@@ -665,7 +672,7 @@ def _make_clear(method_name, widget_name):
|
|
|
665
672
|
self._state.pop(key, None)
|
|
666
673
|
return await self._call("clear")
|
|
667
674
|
method.__name__ = "clear"
|
|
668
|
-
method.__qualname__ =
|
|
675
|
+
method.__qualname__ = "Widget.clear"
|
|
669
676
|
method.__doc__ = "clear()"
|
|
670
677
|
return method
|
|
671
678
|
|
|
@@ -703,6 +710,7 @@ def _add_item_list_methods(attrs, item_cfg, all_methods):
|
|
|
703
710
|
|
|
704
711
|
if append_name and append_name in all_methods:
|
|
705
712
|
param_names = all_methods[append_name]
|
|
713
|
+
|
|
706
714
|
def make_append(mn, pn):
|
|
707
715
|
async def method(self, *args, **kwargs):
|
|
708
716
|
args = _resolve_kwargs(mn, pn, args, kwargs)
|
|
@@ -718,6 +726,7 @@ def _add_item_list_methods(attrs, item_cfg, all_methods):
|
|
|
718
726
|
if insert_name and insert_name in all_methods:
|
|
719
727
|
param_names = all_methods[insert_name]
|
|
720
728
|
alpha_sort = param_names == ["text"]
|
|
729
|
+
|
|
721
730
|
def make_insert(mn, pn, alpha):
|
|
722
731
|
async def method(self, *args, **kwargs):
|
|
723
732
|
args = _resolve_kwargs(mn, pn, args, kwargs)
|
|
@@ -741,6 +750,7 @@ def _add_item_list_methods(attrs, item_cfg, all_methods):
|
|
|
741
750
|
|
|
742
751
|
if delete_name and delete_name in all_methods:
|
|
743
752
|
param_names = all_methods[delete_name]
|
|
753
|
+
|
|
744
754
|
def make_delete(mn, pn):
|
|
745
755
|
async def method(self, *args, **kwargs):
|
|
746
756
|
args = _resolve_kwargs(mn, pn, args, kwargs)
|
|
@@ -766,6 +776,7 @@ def _add_tree_view_methods(attrs, all_methods):
|
|
|
766
776
|
|
|
767
777
|
if "sort_by_column" in all_methods:
|
|
768
778
|
param_names = all_methods["sort_by_column"]
|
|
779
|
+
|
|
769
780
|
async def sort_method(self, *args, **kwargs):
|
|
770
781
|
args = _resolve_kwargs("sort_by_column", param_names, args, kwargs)
|
|
771
782
|
col = args[0] if args else 0
|
|
@@ -777,6 +788,7 @@ def _add_tree_view_methods(attrs, all_methods):
|
|
|
777
788
|
|
|
778
789
|
if "expand_item" in all_methods:
|
|
779
790
|
param_names = all_methods["expand_item"]
|
|
791
|
+
|
|
780
792
|
async def expand_item_method(self, *args, **kwargs):
|
|
781
793
|
args = _resolve_kwargs("expand_item", param_names, args, kwargs)
|
|
782
794
|
path = args[0] if args else None
|
|
@@ -794,6 +806,7 @@ def _add_tree_view_methods(attrs, all_methods):
|
|
|
794
806
|
|
|
795
807
|
if "collapse_item" in all_methods:
|
|
796
808
|
param_names = all_methods["collapse_item"]
|
|
809
|
+
|
|
797
810
|
async def collapse_item_method(self, *args, **kwargs):
|
|
798
811
|
args = _resolve_kwargs("collapse_item", param_names, args, kwargs)
|
|
799
812
|
path = args[0] if args else None
|
|
@@ -886,6 +899,21 @@ def _add_tree_model_methods(attrs, all_methods):
|
|
|
886
899
|
return method
|
|
887
900
|
attrs[name] = make_bulk(name, state_key, all_methods[name])
|
|
888
901
|
|
|
902
|
+
# --- columns: also a private copy, since insert/append/delete_column
|
|
903
|
+
# edit the stored list in place -- without the copy they would edit
|
|
904
|
+
# the caller's list too. Unlike the row setters it keeps the styles.
|
|
905
|
+
if "set_columns" in all_methods:
|
|
906
|
+
param_names = all_methods["set_columns"]
|
|
907
|
+
|
|
908
|
+
async def set_columns_method(self, *args, **kwargs):
|
|
909
|
+
args = _resolve_kwargs("set_columns", param_names, args, kwargs)
|
|
910
|
+
self._state["columns"] = tree_model.copy_tree(
|
|
911
|
+
args[0] if args else None)
|
|
912
|
+
self._user_set_state.add("columns")
|
|
913
|
+
return await self._call("set_columns", *args)
|
|
914
|
+
set_columns_method.__name__ = "set_columns"
|
|
915
|
+
attrs["set_columns"] = set_columns_method
|
|
916
|
+
|
|
889
917
|
# --- per-cell writes fold into the model ---
|
|
890
918
|
if "set_cell" in all_methods:
|
|
891
919
|
param_names = all_methods["set_cell"]
|
|
@@ -1248,7 +1276,6 @@ def _add_colour_override_methods(attrs, all_methods):
|
|
|
1248
1276
|
attrs["clear_all_colors"] = clear_all_colors_method
|
|
1249
1277
|
|
|
1250
1278
|
|
|
1251
|
-
|
|
1252
1279
|
def _init_params(pos_names, opt_names):
|
|
1253
1280
|
"""Build the parameter string for the generated __init__.
|
|
1254
1281
|
|
pgwidgets/extras/file_browser.py
CHANGED
|
@@ -140,7 +140,7 @@ class FileBrowser(Callbacks):
|
|
|
140
140
|
|
|
141
141
|
# Build the dialog (autoclose=False; we manage closing ourselves)
|
|
142
142
|
self._dialog = W.Dialog(title, [["Cancel", "cancel"],
|
|
143
|
-
|
|
143
|
+
[ok_label, "ok"]],
|
|
144
144
|
autoclose=False, modal=modal,
|
|
145
145
|
moveable=True, resizable=True)
|
|
146
146
|
self._dialog.resize(550, 420)
|
|
@@ -448,8 +448,8 @@ class FileBrowser(Callbacks):
|
|
|
448
448
|
"""Show a confirmation dialog for overwriting an existing file."""
|
|
449
449
|
W = self._W
|
|
450
450
|
dlg = W.Dialog("Confirm Overwrite",
|
|
451
|
-
|
|
452
|
-
|
|
451
|
+
[["Cancel", "cancel"], ["Overwrite", "ok"]],
|
|
452
|
+
autoclose=True, modal=True)
|
|
453
453
|
dlg.resize(350, 140)
|
|
454
454
|
dlg.set_spacing(8)
|
|
455
455
|
name = os.path.basename(path)
|
pgwidgets/method_types.py
CHANGED
|
@@ -360,6 +360,7 @@ def colour_batches(widget, chunk=COLOUR_BATCH_SIZE):
|
|
|
360
360
|
batches.append({"cells": cells[i:i + chunk]})
|
|
361
361
|
return batches
|
|
362
362
|
|
|
363
|
+
|
|
363
364
|
# Default state values applied when a widget is created without
|
|
364
365
|
# explicitly setting the key (e.g. TextEntry() with no text arg).
|
|
365
366
|
STATE_DEFAULTS = {
|
|
@@ -452,32 +453,38 @@ def _index_to_widget(self, index):
|
|
|
452
453
|
return None
|
|
453
454
|
return self._children[index][0]
|
|
454
455
|
|
|
456
|
+
|
|
455
457
|
def _index_of(self, child):
|
|
456
458
|
for i, entry in enumerate(self._children):
|
|
457
459
|
if entry[0] is child:
|
|
458
460
|
return i
|
|
459
461
|
return -1
|
|
460
462
|
|
|
463
|
+
|
|
461
464
|
def _dialog_popup(self, x=None, y=None):
|
|
462
465
|
self._state["visible"] = True
|
|
463
466
|
if x is not None and y is not None:
|
|
464
467
|
self._state["position"] = (x, y)
|
|
465
468
|
return self._call("popup", x, y)
|
|
466
469
|
|
|
470
|
+
|
|
467
471
|
def _get_menu(self, name):
|
|
468
472
|
for entry in self._replay_calls:
|
|
469
473
|
if entry[0] == "add_menu" and entry[1] and entry[1][0] == name:
|
|
470
474
|
return entry[2]
|
|
471
475
|
return None
|
|
472
476
|
|
|
477
|
+
|
|
473
478
|
def _menuaction_set_state(self, tf):
|
|
474
479
|
"""Alias for MenuAction.set_checked — keeps a single state key."""
|
|
475
480
|
return self.set_checked(tf)
|
|
476
481
|
|
|
482
|
+
|
|
477
483
|
def _menuaction_get_state(self):
|
|
478
484
|
"""Alias for MenuAction.get_checked — keeps a single state key."""
|
|
479
485
|
return self.get_checked()
|
|
480
486
|
|
|
487
|
+
|
|
481
488
|
# Above this size (bytes), set_binary_image switches from the single-
|
|
482
489
|
# frame _send_binary transport to the chunked _send_binary_chunked
|
|
483
490
|
# transport. Keeps small frames cheap and lets multi-megabyte frames
|
|
@@ -540,6 +547,7 @@ def _image_set_binary_image(self, data, format="jpeg"):
|
|
|
540
547
|
_send_binary_auto(self._session, self._wid,
|
|
541
548
|
"set_binary_image", [format], data)
|
|
542
549
|
|
|
550
|
+
|
|
543
551
|
# State keys whose value is a (format, bytes) tuple that must be
|
|
544
552
|
# replayed via _send_binary instead of _call during reconstruction.
|
|
545
553
|
# Maps state_key -> JS-side method name to invoke. The replay packs
|
pgwidgets/sync/application.py
CHANGED
|
@@ -30,10 +30,10 @@ from pgwidgets._json import JsonEncoder
|
|
|
30
30
|
from pgwidgets.defs import WIDGETS
|
|
31
31
|
from pgwidgets.sync.widget import Widget, build_all_widget_classes
|
|
32
32
|
from pgwidgets.method_types import (
|
|
33
|
-
SPECIAL_SETTERS, FIXED_SETTERS,
|
|
33
|
+
SPECIAL_SETTERS, FIXED_SETTERS,
|
|
34
34
|
STATE_SYNC_CALLBACKS, STATE_SYNC_REQUIRES_OPTION,
|
|
35
35
|
WIDGET_CALLBACK_SYNC, POST_CHILDREN_STATE_KEYS, ITEM_LIST_CONFIG,
|
|
36
|
-
CHILD_CLOSE_CALLBACKS,
|
|
36
|
+
CHILD_CLOSE_CALLBACKS,
|
|
37
37
|
TREE_OVERRIDE_REPLAY, colour_batches, JS_ONLY_METHODS,
|
|
38
38
|
coalesce_colour_calls,
|
|
39
39
|
BINARY_STATE_KEYS, _send_binary_auto,
|
|
@@ -876,6 +876,7 @@ class Session:
|
|
|
876
876
|
"method": method,
|
|
877
877
|
"args": list(args),
|
|
878
878
|
}, cls=JsonEncoder)
|
|
879
|
+
|
|
879
880
|
# Send header + binary as an atomic pair on each connection so
|
|
880
881
|
# they can't be interleaved with other sends from another
|
|
881
882
|
# thread. The pair is wrapped in a single coroutine.
|
|
@@ -1571,7 +1572,6 @@ class Session:
|
|
|
1571
1572
|
"""Determine which child method a container uses."""
|
|
1572
1573
|
# Check the widget's definition for which child methods it has
|
|
1573
1574
|
defn = WIDGETS[parent._js_class]
|
|
1574
|
-
base = defn.get("base")
|
|
1575
1575
|
methods = defn.get("methods", {})
|
|
1576
1576
|
if "set_widget" in methods:
|
|
1577
1577
|
return "set_widget"
|
|
@@ -2159,6 +2159,7 @@ class Application:
|
|
|
2159
2159
|
self._dispatch(session, do_reconstruct, ())
|
|
2160
2160
|
else:
|
|
2161
2161
|
self._logger.info(f"Session {session.id} connected.")
|
|
2162
|
+
|
|
2162
2163
|
def do_connect():
|
|
2163
2164
|
# Replay fonts before the user callback so any widget
|
|
2164
2165
|
# the user builds with ``set_font(family, ...)`` sees
|
pgwidgets/sync/widget.py
CHANGED
|
@@ -15,7 +15,6 @@ from pgwidgets import tree_model
|
|
|
15
15
|
from pgwidgets.defs import WIDGETS, CALLBACK_METHODS, WIDGET_METHODS, CONTAINER_METHODS
|
|
16
16
|
from pgwidgets.method_types import (
|
|
17
17
|
classify_method, SETTER, GETTER, CHILD, ACTION, JS_ONLY,
|
|
18
|
-
CHILD_METHODS as CHILD_METHOD_TYPES,
|
|
19
18
|
FIXED_SETTERS, CLEAR_RESETS, ITEM_LIST_CONFIG,
|
|
20
19
|
REPLAY_METHODS, CHILD_SELECT_METHODS, TREE_VIEW_WIDGETS,
|
|
21
20
|
STATE_SYNC_CALLBACKS, STATE_SYNC_REQUIRES_OPTION,
|
|
@@ -122,6 +121,10 @@ class Widget:
|
|
|
122
121
|
# Store constructor info for reconstruction
|
|
123
122
|
self._constructor_args = tuple(args[:len(pos_names)])
|
|
124
123
|
self._constructor_options = dict(options)
|
|
124
|
+
if self._constructor_options.get("columns") is not None:
|
|
125
|
+
# the replay record, so keep it safe from the caller's edits
|
|
126
|
+
self._constructor_options["columns"] = tree_model.copy_tree(
|
|
127
|
+
self._constructor_options["columns"])
|
|
125
128
|
|
|
126
129
|
# Store constructor args as initial state (None means "not
|
|
127
130
|
# provided" since generated __init__ defaults all args to None)
|
|
@@ -130,6 +133,10 @@ class Widget:
|
|
|
130
133
|
self._state[name] = args[i]
|
|
131
134
|
for k, v in options.items():
|
|
132
135
|
if v is not None:
|
|
136
|
+
# the column list is edited in place later (see
|
|
137
|
+
# _add_tree_model_methods), so keep a copy of the caller's
|
|
138
|
+
if k == "columns":
|
|
139
|
+
v = tree_model.copy_tree(v)
|
|
133
140
|
self._state[k] = v
|
|
134
141
|
|
|
135
142
|
# Apply default state for keys not set by constructor
|
|
@@ -655,7 +662,7 @@ def _make_clear(method_name, widget_name):
|
|
|
655
662
|
self._state.pop(key, None)
|
|
656
663
|
return self._call("clear")
|
|
657
664
|
method.__name__ = "clear"
|
|
658
|
-
method.__qualname__ =
|
|
665
|
+
method.__qualname__ = "Widget.clear"
|
|
659
666
|
method.__doc__ = "clear()"
|
|
660
667
|
return method
|
|
661
668
|
|
|
@@ -700,6 +707,7 @@ def _add_item_list_methods(attrs, item_cfg, all_methods):
|
|
|
700
707
|
|
|
701
708
|
if append_name and append_name in all_methods:
|
|
702
709
|
param_names = all_methods[append_name]
|
|
710
|
+
|
|
703
711
|
def make_append(mn, pn):
|
|
704
712
|
def method(self, *args, **kwargs):
|
|
705
713
|
args = _resolve_kwargs(mn, pn, args, kwargs)
|
|
@@ -719,6 +727,7 @@ def _add_item_list_methods(attrs, item_cfg, all_methods):
|
|
|
719
727
|
# local list matches the browser's order. Otherwise treat the
|
|
720
728
|
# second arg as an explicit insert index.
|
|
721
729
|
alpha_sort = param_names == ["text"]
|
|
730
|
+
|
|
722
731
|
def make_insert(mn, pn, alpha):
|
|
723
732
|
def method(self, *args, **kwargs):
|
|
724
733
|
args = _resolve_kwargs(mn, pn, args, kwargs)
|
|
@@ -742,6 +751,7 @@ def _add_item_list_methods(attrs, item_cfg, all_methods):
|
|
|
742
751
|
|
|
743
752
|
if delete_name and delete_name in all_methods:
|
|
744
753
|
param_names = all_methods[delete_name]
|
|
754
|
+
|
|
745
755
|
def make_delete(mn, pn):
|
|
746
756
|
def method(self, *args, **kwargs):
|
|
747
757
|
args = _resolve_kwargs(mn, pn, args, kwargs)
|
|
@@ -767,6 +777,7 @@ def _add_tree_view_methods(attrs, all_methods):
|
|
|
767
777
|
|
|
768
778
|
if "sort_by_column" in all_methods:
|
|
769
779
|
param_names = all_methods["sort_by_column"]
|
|
780
|
+
|
|
770
781
|
def sort_method(self, *args, **kwargs):
|
|
771
782
|
args = _resolve_kwargs("sort_by_column", param_names, args, kwargs)
|
|
772
783
|
col = args[0] if args else 0
|
|
@@ -778,6 +789,7 @@ def _add_tree_view_methods(attrs, all_methods):
|
|
|
778
789
|
|
|
779
790
|
if "expand_item" in all_methods:
|
|
780
791
|
param_names = all_methods["expand_item"]
|
|
792
|
+
|
|
781
793
|
def expand_item_method(self, *args, **kwargs):
|
|
782
794
|
args = _resolve_kwargs("expand_item", param_names, args, kwargs)
|
|
783
795
|
path = args[0] if args else None
|
|
@@ -795,6 +807,7 @@ def _add_tree_view_methods(attrs, all_methods):
|
|
|
795
807
|
|
|
796
808
|
if "collapse_item" in all_methods:
|
|
797
809
|
param_names = all_methods["collapse_item"]
|
|
810
|
+
|
|
798
811
|
def collapse_item_method(self, *args, **kwargs):
|
|
799
812
|
args = _resolve_kwargs("collapse_item", param_names, args, kwargs)
|
|
800
813
|
path = args[0] if args else None
|
|
@@ -886,6 +899,21 @@ def _add_tree_model_methods(attrs, all_methods):
|
|
|
886
899
|
return method
|
|
887
900
|
attrs[name] = make_bulk(name, state_key, all_methods[name])
|
|
888
901
|
|
|
902
|
+
# --- columns: also a private copy, since insert/append/delete_column
|
|
903
|
+
# edit the stored list in place -- without the copy they would edit
|
|
904
|
+
# the caller's list too. Unlike the row setters it keeps the styles.
|
|
905
|
+
if "set_columns" in all_methods:
|
|
906
|
+
param_names = all_methods["set_columns"]
|
|
907
|
+
|
|
908
|
+
def set_columns_method(self, *args, **kwargs):
|
|
909
|
+
args = _resolve_kwargs("set_columns", param_names, args, kwargs)
|
|
910
|
+
self._state["columns"] = tree_model.copy_tree(
|
|
911
|
+
args[0] if args else None)
|
|
912
|
+
self._user_set_state.add("columns")
|
|
913
|
+
return self._call("set_columns", *args)
|
|
914
|
+
set_columns_method.__name__ = "set_columns"
|
|
915
|
+
attrs["set_columns"] = set_columns_method
|
|
916
|
+
|
|
889
917
|
# --- per-cell writes fold into the model ---
|
|
890
918
|
if "set_cell" in all_methods:
|
|
891
919
|
param_names = all_methods["set_cell"]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pgwidgets-python
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.3
|
|
4
4
|
Summary: Python bindings for the pgwidgets JavaScript widget library
|
|
5
5
|
Author: PGWidgets Developers
|
|
6
6
|
License-Expression: BSD-3-Clause
|
|
@@ -17,7 +17,7 @@ Classifier: Topic :: Software Development :: User Interfaces
|
|
|
17
17
|
Requires-Python: >=3.12
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
19
19
|
License-File: LICENSE.md
|
|
20
|
-
Requires-Dist: pgwidgets-js>=0.4.
|
|
20
|
+
Requires-Dist: pgwidgets-js>=0.4.3
|
|
21
21
|
Requires-Dist: websockets>=12
|
|
22
22
|
Provides-Extra: dev
|
|
23
23
|
Requires-Dist: sphinx; extra == "dev"
|
|
@@ -3,23 +3,23 @@ pgwidgets/_json.py,sha256=o21qywJ6yAldbqxTq3nLwgK9O67r3a8JxhvI_WAJnMY,2184
|
|
|
3
3
|
pgwidgets/buffer.py,sha256=BYj_nb6fuyGsBqUp3_Z1YrzUm4h5VmoWPGKvpTjWrYk,4048
|
|
4
4
|
pgwidgets/callbacks.py,sha256=gA2FnX0N5BmbmOMyEV35yHySgAfVjfAZcZhZbo7j4-c,3314
|
|
5
5
|
pgwidgets/defs.py,sha256=Q8qhvTeansFU1Av6j5ncdwF2xSNHrpXuKErdHWQ3HiA,436
|
|
6
|
-
pgwidgets/method_types.py,sha256=
|
|
6
|
+
pgwidgets/method_types.py,sha256=3JRy1KJQREfz2zuDIY959MRcSr8wY58gmM_ftsneOKg,24819
|
|
7
7
|
pgwidgets/text_model.py,sha256=xlSAoh1ikIG9ZYVwx5wHWrohkGkyu7R6Cbs36_xnbMg,29313
|
|
8
8
|
pgwidgets/tree_model.py,sha256=agif6vSeLzcGfLe1tB-O2MIkXv7Qgb53uWMoTXDSgAc,12144
|
|
9
9
|
pgwidgets/async_/Widgets.py,sha256=vld2xkvusBBEVbhbezaJsjBRRj3L7c17Up0pOVs8PGo,723
|
|
10
10
|
pgwidgets/async_/__init__.py,sha256=rXB-v9XRrYt1imYuYikhkzIyiRqaYhlTpQei2LHaQ18,564
|
|
11
|
-
pgwidgets/async_/application.py,sha256=
|
|
12
|
-
pgwidgets/async_/widget.py,sha256=
|
|
11
|
+
pgwidgets/async_/application.py,sha256=0lCCaUuCdSPLAym9WWodlD1FKVzjJukvV3gmXB0Zkaw,85297
|
|
12
|
+
pgwidgets/async_/widget.py,sha256=no1s7dtv030BuBqLpwE97AwmgT32pLizLVey05vd0Eo,58249
|
|
13
13
|
pgwidgets/extras/__init__.py,sha256=AXUmFtnn4RSlp6pJX6z55j-m_29VmfzpYIjQvAy7pO0,325
|
|
14
|
-
pgwidgets/extras/file_browser.py,sha256=
|
|
14
|
+
pgwidgets/extras/file_browser.py,sha256=VyGjc4zlexSBi6nWbxs-J3kBXRzEwR5ilzkLLEtEy-k,17344
|
|
15
15
|
pgwidgets/icons/pgw-python-logo.png,sha256=_Rxicp9EKy2Pzz1HtobxEnntSI-y5TtAVPlIzZIsfYs,2428840
|
|
16
16
|
pgwidgets/sync/Widgets.py,sha256=7SaocMVMzFHhi51pjuEAr47Wez90b_a61kDbiv0jOfM,706
|
|
17
17
|
pgwidgets/sync/__init__.py,sha256=SF5RTAvtu8BbYBWzpiCPipy6DJzNXf6nqk9xdvwxUhQ,542
|
|
18
|
-
pgwidgets/sync/application.py,sha256=
|
|
18
|
+
pgwidgets/sync/application.py,sha256=qVjbdj_8h5TwL34ShfPtxv3HoeXiDM2avvqtNm7xzqs,102376
|
|
19
19
|
pgwidgets/sync/text_source.py,sha256=yeRhDbCMMqipAoMnyAk3j_1EL2YEdziCmiB3JdprGvc,10057
|
|
20
|
-
pgwidgets/sync/widget.py,sha256=
|
|
21
|
-
pgwidgets_python-0.4.
|
|
22
|
-
pgwidgets_python-0.4.
|
|
23
|
-
pgwidgets_python-0.4.
|
|
24
|
-
pgwidgets_python-0.4.
|
|
25
|
-
pgwidgets_python-0.4.
|
|
20
|
+
pgwidgets/sync/widget.py,sha256=BwPLzDE5HoL3x-7SS3ODZelnY2Dk6GMY8ofCasNBBwU,58650
|
|
21
|
+
pgwidgets_python-0.4.3.dist-info/licenses/LICENSE.md,sha256=LoM3fMTiMnQuHRCJghdjOtjnCrL8soBpu2PFk24Xvyg,1528
|
|
22
|
+
pgwidgets_python-0.4.3.dist-info/METADATA,sha256=vvzmwa9no1iU4s2OHG_WvLpGNs2lGxpNK1VvZd7DgwU,4694
|
|
23
|
+
pgwidgets_python-0.4.3.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
24
|
+
pgwidgets_python-0.4.3.dist-info/top_level.txt,sha256=wwL6fBq0gU-JwzlM6TdduY1qYpu39ysqnnbQT-1bqAs,10
|
|
25
|
+
pgwidgets_python-0.4.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|