gtk-stream 0.15.1__py3-none-any.whl → 0.15.2__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.1'
16
- __version_tuple__ = version_tuple = (0, 15, 1)
15
+ __version__ = version = '0.15.2'
16
+ __version_tuple__ = version_tuple = (0, 15, 2)
gtk_stream/application.py CHANGED
@@ -98,7 +98,7 @@ class GtkStreamApp(Gtk.Application):
98
98
  self.attrs_set.release()
99
99
 
100
100
  @app_message('file-dialog')
101
- def open_file_dialog(self, id, parent, action = "open"):
101
+ def open_file_dialog(self, id, parent, title="Choose a file", action = "open"):
102
102
  parent_window = self.named_windows[parent]
103
103
  if Gtk.MINOR_VERSION >= 10:
104
104
  # From version 4.10, use FileDialog
@@ -132,7 +132,8 @@ class GtkStreamApp(Gtk.Application):
132
132
  case 'save':
133
133
  fc_action = Gtk.FileChooserAction.SAVE
134
134
  fc_label = "Save"
135
- dialog = Gtk.FileChooserDialog.new("Choose a file", parent_window, fc_action, fc_label, Gtk.ResponseType.ACCEPT)
135
+ dialog = Gtk.FileChooserDialog(title=title, transient_for=parent_window, action=fc_action)
136
+ dialog.add_buttons(fc_label, Gtk.ResponseType.ACCEPT)
136
137
  dialog.props.modal = True
137
138
  def on_choose(_, b):
138
139
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: gtk-stream
3
- Version: 0.15.1
3
+ Version: 0.15.2
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=po5_rvCFTU8xU9IC56wyK0-zfBgz_U4xX6CO2mv9Mzs,413
3
- gtk_stream/application.py,sha256=Tf5kbpHmsZ_rnFFklLtCGBul7HoHiXe0398wExP3q_M,6944
2
+ gtk_stream/_version.py,sha256=rpKddITAwhN3ODkw2Hnyk78Rfa68aMQtE89B6bWl2x0,413
3
+ gtk_stream/application.py,sha256=876pKzDZvfdj370EMMyrn0RhrqcapSw8u2pnMKhef_o,7011
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.1.dist-info/METADATA,sha256=KFQPdW6O5As9qAmoagWL8NkZHzE03a9zStuS1_e7Hps,807
28
- gtk_stream-0.15.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
29
- gtk_stream-0.15.1.dist-info/entry_points.txt,sha256=PmhKTb4MMQM6dN2HJcoDSMI8L0lZIFIlFn-BgdfPDpo,60
30
- gtk_stream-0.15.1.dist-info/top_level.txt,sha256=vE9zfHGe9Ke7FSe0wBK2WYJI-BpcQNu6xDC3Cu5O8rQ,11
31
- gtk_stream-0.15.1.dist-info/RECORD,,
27
+ gtk_stream-0.15.2.dist-info/METADATA,sha256=d5MRVMpjCYPc7_P1qy9L1VvkgiHPtHP_aVFsaVjWm-8,807
28
+ gtk_stream-0.15.2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
29
+ gtk_stream-0.15.2.dist-info/entry_points.txt,sha256=PmhKTb4MMQM6dN2HJcoDSMI8L0lZIFIlFn-BgdfPDpo,60
30
+ gtk_stream-0.15.2.dist-info/top_level.txt,sha256=vE9zfHGe9Ke7FSe0wBK2WYJI-BpcQNu6xDC3Cu5O8rQ,11
31
+ gtk_stream-0.15.2.dist-info/RECORD,,