gtk-stream 0.13.5__py3-none-any.whl → 0.13.6__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
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.13.5'
16
- __version_tuple__ = version_tuple = (0, 13, 5)
15
+ __version__ = version = '0.13.6'
16
+ __version_tuple__ = version_tuple = (0, 13, 6)
gtk_stream/application.py CHANGED
@@ -89,6 +89,9 @@ class GtkStreamApp(Gtk.Application):
89
89
  if id is not None:
90
90
  self.named_widgets[id] = w
91
91
 
92
+ def wait_for_init(self):
93
+ self.attrs_set.acquire()
94
+
92
95
  def set_attrs(self, attrs):
93
96
  for name, val in attrs.items():
94
97
  set_parse_prop(self, self, name, val)
@@ -93,8 +93,5 @@ function GTK.receive() {
93
93
  parser_thread = threading.Thread(target = parser_main, daemon = True)
94
94
  parser_thread.start()
95
95
 
96
- # When the parser parses the 'application' tag, it sets the
97
- # application attributes, and releases the semaphore so the
98
- # application can start
99
- app.attrs_set.acquire()
96
+ app.wait_for_init()
100
97
  app.run()
@@ -42,6 +42,8 @@ class Document:
42
42
  val = v(self.app)
43
43
  self.app.logger.debug("Setting property '%s' to '%s' in widget %s", p, val, self.__class__)
44
44
  w.set_property(p, val)
45
+ if self.id:
46
+ w.set_property("name", self.id)
45
47
  w.insert_child = lambda d: self.insert_child(w, d)
46
48
  def render(self):
47
49
  w = self.render_raw()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: gtk-stream
3
- Version: 0.13.5
3
+ Version: 0.13.6
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,14 +1,14 @@
1
1
  gtk_stream/__init__.py,sha256=y6JLknVFexWrSo_Zl7-TXrPR6EQ5XVMeFO1bUzLN9Lg,98
2
- gtk_stream/_version.py,sha256=nyWjzUs9M1XFc5MLonkyorh4rhe5dHRCj707gnafzf4,413
3
- gtk_stream/application.py,sha256=SpMUuqYyyW056CIa0kQXhMDdI_e69HjsFBa4ihPomvQ,5500
4
- gtk_stream/command_line.py,sha256=g7Sed0ydnDGKyWHT09murwR-3vZyIKXRWgM4Oi0qDE4,3278
2
+ gtk_stream/_version.py,sha256=zzSYUoANo8Flx9JbASsXdKUFyreIjmnWWP8bU7b8Jvk,413
3
+ gtk_stream/application.py,sha256=Apdizg7fHimXhjCwR2SyTwEzRYqvpOEXlxS4g64hWeU,5571
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
7
7
  gtk_stream/properties.py,sha256=DCcRCP3REdfWDkPEVUsNHi1b2XxXU5toL3pf_SxmqQ4,4039
8
8
  gtk_stream/documents/__init__.py,sha256=cMWSmjD2_5oJ2EoSk3Jy9-LPeAGKDIidYNRJvqUzdU8,856
9
9
  gtk_stream/documents/classes/Box.py,sha256=TIxRLO0_SjRpE3soimHuNE0q4jDbU_BUCpcuspSPAzg,1382
10
10
  gtk_stream/documents/classes/Button.py,sha256=21bVI7DUWmiusboxdsimTgcqKtLqzQydhS9ifIt4R64,1512
11
- gtk_stream/documents/classes/Document.py,sha256=DWDH4nl0INxXs_z-vTX_z3E3eHC5JeU3lVWhfzW24Pw,2361
11
+ gtk_stream/documents/classes/Document.py,sha256=8N90bTSL5qYFUvoVhb8NAgZCAN1idomWZEXMrf17D1o,2425
12
12
  gtk_stream/documents/classes/Dropdown.py,sha256=8fIUX1HCWIjUfKLPy9NYsW6OskhkontoNDTsCZ7qKxw,2446
13
13
  gtk_stream/documents/classes/Entry.py,sha256=KcBwjSu4tI30bQxPlSFSLPxFEUbTaqAdoAzd0XSQciY,1112
14
14
  gtk_stream/documents/classes/FlowBox.py,sha256=UoVYS2j_osOV-IgbVoaqluTBCiaXus5dq2e9qhAu2Xo,1225
@@ -24,8 +24,8 @@ gtk_stream/documents/classes/Separator.py,sha256=uw_EgAKs_6pNA8nrOLzruIlJfk4uaog
24
24
  gtk_stream/documents/classes/Stack.py,sha256=icg1TOlCD0IFPv_42uMa7jHbEAgEnuELrTEbnTKiPgU,1568
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.13.5.dist-info/METADATA,sha256=7ZhZ5bwiZWYtQqLLvnyZQj5Bau96JqoV6VzyojcNAfo,807
28
- gtk_stream-0.13.5.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
29
- gtk_stream-0.13.5.dist-info/entry_points.txt,sha256=PmhKTb4MMQM6dN2HJcoDSMI8L0lZIFIlFn-BgdfPDpo,60
30
- gtk_stream-0.13.5.dist-info/top_level.txt,sha256=vE9zfHGe9Ke7FSe0wBK2WYJI-BpcQNu6xDC3Cu5O8rQ,11
31
- gtk_stream-0.13.5.dist-info/RECORD,,
27
+ gtk_stream-0.13.6.dist-info/METADATA,sha256=hQPjDI84xGVp-c_lr3T5TZewh_M8w_HHW2DSDsmPpuo,807
28
+ gtk_stream-0.13.6.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
29
+ gtk_stream-0.13.6.dist-info/entry_points.txt,sha256=PmhKTb4MMQM6dN2HJcoDSMI8L0lZIFIlFn-BgdfPDpo,60
30
+ gtk_stream-0.13.6.dist-info/top_level.txt,sha256=vE9zfHGe9Ke7FSe0wBK2WYJI-BpcQNu6xDC3Cu5O8rQ,11
31
+ gtk_stream-0.13.6.dist-info/RECORD,,