pgwidgets-python 0.1.3__py3-none-any.whl → 0.2.0__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.
@@ -0,0 +1,22 @@
1
+ """
2
+ Module-level widget classes for the asynchronous API.
3
+
4
+ All widget classes are built once at import time from the shared
5
+ definitions. They can be imported and subclassed normally::
6
+
7
+ from pgwidgets.async_.Widgets import FileDialog, Button
8
+
9
+ class MyFileDialog(FileDialog):
10
+ async def pick_file(self):
11
+ await self.open()
12
+
13
+ Instances are created through the ``get_widgets()`` factory on a
14
+ Session, which binds them to a session and handles constructor
15
+ argument parsing, state tracking, and callback registration.
16
+ """
17
+
18
+ from pgwidgets.async_.widget import build_all_widget_classes, Widget
19
+
20
+ _classes = build_all_widget_classes()
21
+ globals().update(_classes)
22
+ __all__ = list(_classes.keys()) + ["Widget"]