gtk-stream 0.15.3__py3-none-any.whl → 0.15.4__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.
gtk_stream/_version.py CHANGED
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.15.3'
16
- __version_tuple__ = version_tuple = (0, 15, 3)
15
+ __version__ = version = '0.15.4'
16
+ __version_tuple__ = version_tuple = (0, 15, 4)
gtk_stream/application.py CHANGED
@@ -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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: gtk-stream
3
- Version: 0.15.3
3
+ Version: 0.15.4
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,6 +1,6 @@
1
1
  gtk_stream/__init__.py,sha256=y6JLknVFexWrSo_Zl7-TXrPR6EQ5XVMeFO1bUzLN9Lg,98
2
- gtk_stream/_version.py,sha256=UWUhvfR3ZVFsJo7yBQI3spcIPiJYLuoY5H9r5vj2XQc,413
3
- gtk_stream/application.py,sha256=4mQcGs6j9bWRJg8ohXRl7_RaENeSftCdlMVMNMwa8Dg,7046
2
+ gtk_stream/_version.py,sha256=KNHWpyvtONmNLJV_IL_RWMiPdLc5ikO93KvZSneqMyM,413
3
+ gtk_stream/application.py,sha256=3y7BDi8jsM_L0L_J0jwW9F0PVyPHdR9bG84ONTj81Tk,7163
4
4
  gtk_stream/command_line.py,sha256=57slfbV-EUWVI8bsA50IzmCLqNjN9aZpz8J8Gtituro,3105
5
5
  gtk_stream/common.py,sha256=2USRh42DmmxtPO1y8gpeU0hMuHfhcqJBPuxtvd46YHg,2112
6
6
  gtk_stream/parser.py,sha256=lt1cHYwhrd0SwSQfbxtbK6NdwbnFmgeBDIeNY0eepwc,5709
@@ -24,8 +24,8 @@ gtk_stream/documents/classes/Separator.py,sha256=uw_EgAKs_6pNA8nrOLzruIlJfk4uaog
24
24
  gtk_stream/documents/classes/Stack.py,sha256=diZyuBLwuCjn_WE3wx5MBgHN_ty6WXSsyIFRVAbe8yI,1572
25
25
  gtk_stream/documents/classes/Switch.py,sha256=jQVuxqS9Pmpp1ymB_dbJPxasJNpm4e35ry0JYPHdAsk,1275
26
26
  gtk_stream/documents/classes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
- gtk_stream-0.15.3.dist-info/METADATA,sha256=R6UubVUXQNs1SxPT57zp7qoDoWn4fEWw35LGIUFS4TU,807
28
- gtk_stream-0.15.3.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
29
- gtk_stream-0.15.3.dist-info/entry_points.txt,sha256=PmhKTb4MMQM6dN2HJcoDSMI8L0lZIFIlFn-BgdfPDpo,60
30
- gtk_stream-0.15.3.dist-info/top_level.txt,sha256=vE9zfHGe9Ke7FSe0wBK2WYJI-BpcQNu6xDC3Cu5O8rQ,11
31
- gtk_stream-0.15.3.dist-info/RECORD,,
27
+ gtk_stream-0.15.4.dist-info/METADATA,sha256=B91g8TzZAuEYEGCtdjo5fO2i3SIdwMZ_sriJVxusbDY,807
28
+ gtk_stream-0.15.4.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
29
+ gtk_stream-0.15.4.dist-info/entry_points.txt,sha256=PmhKTb4MMQM6dN2HJcoDSMI8L0lZIFIlFn-BgdfPDpo,60
30
+ gtk_stream-0.15.4.dist-info/top_level.txt,sha256=vE9zfHGe9Ke7FSe0wBK2WYJI-BpcQNu6xDC3Cu5O8rQ,11
31
+ gtk_stream-0.15.4.dist-info/RECORD,,