gtk-stream 0.15.3__tar.gz → 0.15.5__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.
Files changed (37) hide show
  1. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/PKG-INFO +1 -1
  2. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/gtk_stream/_version.py +9 -4
  3. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/gtk_stream/application.py +11 -9
  4. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/gtk_stream/documents/classes/Dropdown.py +3 -1
  5. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/gtk_stream.egg-info/PKG-INFO +1 -1
  6. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/README.md +0 -0
  7. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/gtk-stream +0 -0
  8. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/gtk_stream/__init__.py +0 -0
  9. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/gtk_stream/command_line.py +0 -0
  10. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/gtk_stream/common.py +0 -0
  11. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/gtk_stream/documents/__init__.py +0 -0
  12. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/gtk_stream/documents/classes/Box.py +0 -0
  13. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/gtk_stream/documents/classes/Button.py +0 -0
  14. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/gtk_stream/documents/classes/Document.py +0 -0
  15. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/gtk_stream/documents/classes/Entry.py +0 -0
  16. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/gtk_stream/documents/classes/FlowBox.py +0 -0
  17. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/gtk_stream/documents/classes/Frame.py +0 -0
  18. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/gtk_stream/documents/classes/Grid.py +0 -0
  19. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/gtk_stream/documents/classes/Label.py +0 -0
  20. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/gtk_stream/documents/classes/Paned.py +0 -0
  21. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/gtk_stream/documents/classes/Picture.py +0 -0
  22. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/gtk_stream/documents/classes/ProgressBar.py +0 -0
  23. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/gtk_stream/documents/classes/Scale.py +0 -0
  24. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/gtk_stream/documents/classes/ScrolledWindow.py +0 -0
  25. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/gtk_stream/documents/classes/Separator.py +0 -0
  26. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/gtk_stream/documents/classes/Stack.py +0 -0
  27. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/gtk_stream/documents/classes/Switch.py +0 -0
  28. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/gtk_stream/documents/classes/__init__.py +0 -0
  29. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/gtk_stream/parser.py +0 -0
  30. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/gtk_stream/properties.py +0 -0
  31. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/gtk_stream.egg-info/SOURCES.txt +0 -0
  32. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/gtk_stream.egg-info/dependency_links.txt +0 -0
  33. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/gtk_stream.egg-info/entry_points.txt +0 -0
  34. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/gtk_stream.egg-info/requires.txt +0 -0
  35. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/gtk_stream.egg-info/top_level.txt +0 -0
  36. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/pyproject.toml +0 -0
  37. {gtk_stream-0.15.3 → gtk_stream-0.15.5}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: gtk-stream
3
- Version: 0.15.3
3
+ Version: 0.15.5
4
4
  Summary: A simple stream-oriented GUI protocol
5
5
  Author-email: Marc Coiffier <marc.coiffier@univ-grenoble-alpes.fr>
6
6
  Project-URL: Homepage, https://coiffier.net/projects/gtk-stream/
@@ -1,8 +1,13 @@
1
- # file generated by setuptools_scm
1
+ # file generated by setuptools-scm
2
2
  # don't change, don't track in version control
3
+
4
+ __all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
5
+
3
6
  TYPE_CHECKING = False
4
7
  if TYPE_CHECKING:
5
- from typing import Tuple, Union
8
+ from typing import Tuple
9
+ from typing import Union
10
+
6
11
  VERSION_TUPLE = Tuple[Union[int, str], ...]
7
12
  else:
8
13
  VERSION_TUPLE = object
@@ -12,5 +17,5 @@ __version__: str
12
17
  __version_tuple__: VERSION_TUPLE
13
18
  version_tuple: VERSION_TUPLE
14
19
 
15
- __version__ = version = '0.15.3'
16
- __version_tuple__ = version_tuple = (0, 15, 3)
20
+ __version__ = version = '0.15.5'
21
+ __version_tuple__ = version_tuple = (0, 15, 5)
@@ -135,16 +135,18 @@ class GtkStreamApp(Gtk.Application):
135
135
  dialog = Gtk.FileChooserDialog(title=title, transient_for=parent_window, action=fc_action)
136
136
  dialog.add_buttons(fc_label, Gtk.ResponseType.ACCEPT)
137
137
  dialog.props.modal = True
138
- def on_choose(_, b):
139
- try:
140
- file = dialog.get_file()
141
- print(f"{id}:selected:{file.get_path()}")
142
- sys.stdout.flush()
138
+ def on_response(_, response):
139
+ if response == Gtk.ResponseType.ACCEPT:
143
140
  dialog.close()
144
- except GLib.GError as e:
145
- print(f"{id}:none-selected")
146
- sys.stdout.flush()
147
- dialog.connect("response", on_choose)
141
+ else:
142
+ try:
143
+ file = dialog.get_file()
144
+ print(f"{id}:selected:{file.get_path()}")
145
+ sys.stdout.flush()
146
+ except GLib.GError as e:
147
+ print(f"{id}:none-selected")
148
+ sys.stdout.flush()
149
+ dialog.connect("response", on_response)
148
150
  dialog.present()
149
151
 
150
152
  @app_message('window', single_store)
@@ -52,7 +52,9 @@ class Dropdown(Document):
52
52
  item = list_item.get_item()
53
53
  if list_item.item_key != item.key:
54
54
  list_item.item_key = item.key
55
- list_item.set_child(item.doc.render())
55
+ widget = item.doc.render()
56
+ widget.remove_self = lambda: self.model.remove(self.model.find(item)[-1])
57
+ list_item.set_child(widget)
56
58
  factory.connect("setup", on_list_setup)
57
59
  factory.connect("bind", on_list_bind)
58
60
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: gtk-stream
3
- Version: 0.15.3
3
+ Version: 0.15.5
4
4
  Summary: A simple stream-oriented GUI protocol
5
5
  Author-email: Marc Coiffier <marc.coiffier@univ-grenoble-alpes.fr>
6
6
  Project-URL: Homepage, https://coiffier.net/projects/gtk-stream/
File without changes
File without changes
File without changes
File without changes