gtk-stream 0.4__py3-none-any.whl → 0.5.1__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.
@@ -1,14 +1,16 @@
1
- from .classes.Document import Document, PseudoDocument
1
+ from .classes.Document import Document, PseudoDocument
2
2
 
3
- from .classes.Label import Label
4
- from .classes.Picture import Picture
5
- from .classes.ProgressBar import ProgressBar
3
+ from .classes.Label import Label
4
+ from .classes.Picture import Picture
5
+ from .classes.ProgressBar import ProgressBar
6
+ from .classes.Separator import Separator
6
7
 
7
- from .classes.Button import Button, LinkButton
8
- from .classes.Dropdown import Dropdown, Item
9
- from .classes.Switch import Switch
8
+ from .classes.Button import Button, LinkButton
9
+ from .classes.Dropdown import Dropdown, Item
10
+ from .classes.Switch import Switch
10
11
 
11
- from .classes.Box import Box, BoxPrepend
12
- from .classes.Paned import Paned
13
- from .classes.Frame import Frame, FrameLabel
14
- from .classes.Grid import Grid, Cell
12
+ from .classes.Box import Box, BoxPrepend
13
+ from .classes.ScrolledWindow import ScrolledWindow
14
+ from .classes.Paned import Paned
15
+ from .classes.Frame import Frame, FrameLabel
16
+ from .classes.Grid import Grid, Cell
@@ -0,0 +1,11 @@
1
+ from ... import Gtk
2
+ from .. import Document
3
+
4
+ class ScrolledWindow(Document):
5
+ __g_class__ = Gtk.ScrolledWindow
6
+ def __init__(self, app, **kwargs):
7
+ super().__init__(app, **kwargs)
8
+ def render_raw(self):
9
+ return Gtk.ScrolledWindow()
10
+ def insert_child(self, w, d):
11
+ w.set_child(d.render())
@@ -0,0 +1,9 @@
1
+ from ... import Gtk
2
+ from .. import Document
3
+
4
+ class Separator(Document):
5
+ __g_class__ = Gtk.Separator
6
+ def __init__(self, app, **kwargs):
7
+ super().__init__(app, **kwargs)
8
+ def render_raw(self):
9
+ return Gtk.Separator()
gtk_stream/parser.py CHANGED
@@ -12,21 +12,23 @@ class _Object:
12
12
  pass
13
13
 
14
14
  WIDGET_DOCUMENTS = {
15
- 'progress-bar' : docs.ProgressBar,
16
- 'label' : docs.Label,
17
- 'box' : docs.Box,
18
- 'box-prepend' : docs.BoxPrepend,
19
- 'button' : docs.Button,
20
- 'dropdown' : docs.Dropdown,
21
- 'item' : docs.Item,
22
- 'paned' : docs.Paned,
23
- 'grid' : docs.Grid,
24
- 'cell' : docs.Cell,
25
- 'frame' : docs.Frame,
26
- 'frame-label' : docs.FrameLabel,
27
- 'link' : docs.LinkButton,
28
- 'switch' : docs.Switch,
29
- 'picture' : docs.Picture
15
+ 'progress-bar' : docs.ProgressBar,
16
+ 'label' : docs.Label,
17
+ 'box' : docs.Box,
18
+ 'box-prepend' : docs.BoxPrepend,
19
+ 'button' : docs.Button,
20
+ 'dropdown' : docs.Dropdown,
21
+ 'item' : docs.Item,
22
+ 'paned' : docs.Paned,
23
+ 'grid' : docs.Grid,
24
+ 'cell' : docs.Cell,
25
+ 'frame' : docs.Frame,
26
+ 'frame-label' : docs.FrameLabel,
27
+ 'link' : docs.LinkButton,
28
+ 'switch' : docs.Switch,
29
+ 'picture' : docs.Picture,
30
+ 'separator' : docs.Separator,
31
+ 'scrolled-window' : docs.ScrolledWindow
30
32
  }
31
33
 
32
34
  class GtkStreamXMLHandler(sax.ContentHandler):
@@ -1,9 +1,10 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gtk-stream
3
- Version: 0.4
3
+ Version: 0.5.1
4
4
  Summary: A simple stream-oriented GUI protocol
5
5
  Author-email: Marc Coiffier <marc.coiffier@univ-grenoble-alpes.fr>
6
- Project-URL: Homepage, https://coiffiem.gricad-pages.univ-grenoble-alpes.fr/gtk-stream/
6
+ Project-URL: Homepage, https://coiffier.net/projects/gtk-stream/
7
+ Project-URL: Source, https://coiffier.net/projects/gtk-stream/code/
7
8
  Classifier: Development Status :: 4 - Beta
8
9
  Classifier: Intended Audience :: Developers
9
10
  Classifier: Environment :: X11 Applications :: GTK
@@ -2,9 +2,9 @@ gtk_stream/__init__.py,sha256=pDhUSN4AYNsP8_tilU1zmDCYdiv7ak4PE1TW0qFrDlg,99
2
2
  gtk_stream/application.py,sha256=e_Xvi9xG1kCD979CnZyAZlFj0F8cDUf_9_Tad2bmirs,3111
3
3
  gtk_stream/command_line.py,sha256=c2ghqIQB5hYxtCszss1z84yKoeRYvaMJJMi4aiTspWg,312
4
4
  gtk_stream/common.py,sha256=sEw15nVw9SVp8eLVOB5Zj1JITVhUhCF0i3PSwpd8lis,590
5
- gtk_stream/parser.py,sha256=KRzJ8yic5GcSnHUTo7vJ7HRvY7SILLrQMCC9oXOoErc,7028
5
+ gtk_stream/parser.py,sha256=W0I9P6imw5HQ11Yd6lJsEOtsZyfTlHPCoHLb2sRBT9I,7158
6
6
  gtk_stream/properties.py,sha256=jxd7f-9Xl2cfMQpXuVEc_0VrgjfWcRjES7EzfhjQ5Rw,1392
7
- gtk_stream/documents/__init__.py,sha256=u_TgDNy8m_aNR9TYjfgxbFn1r9zASHy3LKYGCHz6pFE,456
7
+ gtk_stream/documents/__init__.py,sha256=fPfffVh90czgded8wxI-KFLyw0ZG0tfQ-v3_E5JawQE,639
8
8
  gtk_stream/documents/classes/Box.py,sha256=-L0OSIcPCOYedJqD9zPpe183EJJkClboX1-3yGHmnL0,661
9
9
  gtk_stream/documents/classes/Button.py,sha256=HeIYBix4qLVZc_a6Fs_MofyqxHeXbuZzsk_FneGLGb4,809
10
10
  gtk_stream/documents/classes/Document.py,sha256=w3DXEmEvqRO8efJ5ovre_ToGylSVjN5C1vu81LiNl1U,1379
@@ -15,10 +15,12 @@ gtk_stream/documents/classes/Label.py,sha256=3KI9JyVaBhgw0RZ7jK1NEn6mZg7GG0LrZz-
15
15
  gtk_stream/documents/classes/Paned.py,sha256=4xG_BWNlOn3Esd_99953OAMGmjWkdkGSHKJhnprtzG8,672
16
16
  gtk_stream/documents/classes/Picture.py,sha256=fNtM3TLkr2au92m8MCJmE3fYvyajFgw1VxMfj7dYV3s,298
17
17
  gtk_stream/documents/classes/ProgressBar.py,sha256=aegonsruP3jPGA6Wguk-MdIm5e3y-4Ug3q_cGglDcAA,246
18
+ gtk_stream/documents/classes/ScrolledWindow.py,sha256=XX5tZDC5SlxAPMrzSscO3O3KzwZZDWKw02Q_bp0M6OE,321
19
+ gtk_stream/documents/classes/Separator.py,sha256=LKjh0BX5DZ-1dn5KL4Yu6anGL9AevnIrq9a52F2fKr4,240
18
20
  gtk_stream/documents/classes/Switch.py,sha256=AQYK8MTwiB7vzJpv1JB8RTgWpW3bZ-EGY7_8MX-29TY,640
19
21
  gtk_stream/documents/classes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
- gtk_stream-0.4.dist-info/METADATA,sha256=ogiVCA8s4UOOvDsDpOII5rqSLgH55NI2fSU0pzpa_SE,555
21
- gtk_stream-0.4.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
22
- gtk_stream-0.4.dist-info/entry_points.txt,sha256=PmhKTb4MMQM6dN2HJcoDSMI8L0lZIFIlFn-BgdfPDpo,60
23
- gtk_stream-0.4.dist-info/top_level.txt,sha256=vE9zfHGe9Ke7FSe0wBK2WYJI-BpcQNu6xDC3Cu5O8rQ,11
24
- gtk_stream-0.4.dist-info/RECORD,,
22
+ gtk_stream-0.5.1.dist-info/METADATA,sha256=pI8FiiSfT3IxzoDX3CSk4U_6jWhpcoPaF3QxHhk6Cws,602
23
+ gtk_stream-0.5.1.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
24
+ gtk_stream-0.5.1.dist-info/entry_points.txt,sha256=PmhKTb4MMQM6dN2HJcoDSMI8L0lZIFIlFn-BgdfPDpo,60
25
+ gtk_stream-0.5.1.dist-info/top_level.txt,sha256=vE9zfHGe9Ke7FSe0wBK2WYJI-BpcQNu6xDC3Cu5O8rQ,11
26
+ gtk_stream-0.5.1.dist-info/RECORD,,