gtk-stream 0.12__tar.gz → 0.13__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. {gtk_stream-0.12 → gtk_stream-0.13}/PKG-INFO +1 -1
  2. {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/_version.py +2 -2
  3. {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/__init__.py +1 -1
  4. {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/Box.py +1 -1
  5. {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/Stack.py +19 -1
  6. {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/parser.py +3 -2
  7. {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/properties.py +1 -0
  8. {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream.egg-info/PKG-INFO +1 -1
  9. {gtk_stream-0.12 → gtk_stream-0.13}/README.md +0 -0
  10. {gtk_stream-0.12 → gtk_stream-0.13}/gtk-stream +0 -0
  11. {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/__init__.py +0 -0
  12. {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/application.py +0 -0
  13. {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/command_line.py +0 -0
  14. {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/common.py +0 -0
  15. {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/Button.py +0 -0
  16. {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/Document.py +0 -0
  17. {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/Dropdown.py +0 -0
  18. {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/Entry.py +0 -0
  19. {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/FlowBox.py +0 -0
  20. {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/Frame.py +0 -0
  21. {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/Grid.py +0 -0
  22. {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/Label.py +0 -0
  23. {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/Paned.py +0 -0
  24. {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/Picture.py +0 -0
  25. {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/ProgressBar.py +0 -0
  26. {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/Scale.py +0 -0
  27. {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/ScrolledWindow.py +0 -0
  28. {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/Separator.py +0 -0
  29. {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/Switch.py +0 -0
  30. {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/__init__.py +0 -0
  31. {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream.egg-info/SOURCES.txt +0 -0
  32. {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream.egg-info/dependency_links.txt +0 -0
  33. {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream.egg-info/entry_points.txt +0 -0
  34. {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream.egg-info/requires.txt +0 -0
  35. {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream.egg-info/top_level.txt +0 -0
  36. {gtk_stream-0.12 → gtk_stream-0.13}/pyproject.toml +0 -0
  37. {gtk_stream-0.12 → gtk_stream-0.13}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gtk-stream
3
- Version: 0.12
3
+ Version: 0.13
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/
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.12'
16
- __version_tuple__ = version_tuple = (0, 12)
15
+ __version__ = version = '0.13'
16
+ __version_tuple__ = version_tuple = (0, 13)
@@ -17,4 +17,4 @@ from .classes.ScrolledWindow import ScrolledWindow
17
17
  from .classes.Paned import Paned
18
18
  from .classes.Frame import Frame, FrameLabel
19
19
  from .classes.Grid import Grid, Cell
20
- from .classes.Stack import Stack
20
+ from .classes.Stack import Stack, StackSidebar, StackPage
@@ -31,7 +31,7 @@ class Box(Document):
31
31
  def insert_child(self, w, d):
32
32
  if isinstance(d, BoxPrepend):
33
33
  if d.after != None:
34
- w.insert_child_after(d.render(), self.app.namedWidgets[d.after])
34
+ w.insert_child_after(d.render(), self.app.named_widgets[d.after])
35
35
  else:
36
36
  w.prepend(d.render())
37
37
  else:
@@ -17,6 +17,20 @@
17
17
  from ... import Gtk
18
18
  from .. import Document, PseudoDocument
19
19
 
20
+ class StackSidebar(Document):
21
+ __g_class__ = Gtk.StackSidebar
22
+ def __init__(self, app, **kwargs):
23
+ super().__init__(app, **kwargs)
24
+ def render_raw(self):
25
+ return Gtk.StackSidebar()
26
+
27
+ class StackPage(PseudoDocument):
28
+ def __init__(self, app, title):
29
+ super().__init__(app)
30
+ self.title = title
31
+ def set_page_props(self, page):
32
+ page.set_title(self.title)
33
+
20
34
  class Stack(Document):
21
35
  __g_class__ = Gtk.Stack
22
36
  def __init__(self, app, **kwargs):
@@ -24,4 +38,8 @@ class Stack(Document):
24
38
  def render_raw(self):
25
39
  return Gtk.Stack()
26
40
  def insert_child(self, w, d):
27
- w.add_child(d.render())
41
+ child = d.render()
42
+ w.add_child(child)
43
+ if isinstance(d, StackPage):
44
+ page = w.get_page(child)
45
+ d.set_page_props(page)
@@ -47,8 +47,9 @@ WIDGET_DOCUMENTS = {
47
47
  'flow-box' : docs.FlowBox,
48
48
  'flow-box-prepend': docs.FlowBoxPrepend,
49
49
  'entry' : docs.Entry,
50
- 'scale' : docs.Scale
51
-
50
+ 'scale' : docs.Scale,
51
+ 'stack-side-bar' : docs.StackSidebar,
52
+ 'stack-page' : docs.StackPage,
52
53
  }
53
54
 
54
55
  class GtkStreamXMLHandler(sax.ContentHandler):
@@ -73,6 +73,7 @@ _PARSE_TYPE_PROPERTY = {
73
73
  'gboolean' : _parse_boolean_property,
74
74
  'GtkStringFilterMatchMode' : _parse_searchMode_property,
75
75
  'GtkWidget' : _parse_widget_property,
76
+ 'GtkStack' : _parse_widget_property,
76
77
  'GtkWindow' : _parse_window_property,
77
78
  'GtkAdjustment' : _parse_adjustment_property,
78
79
  'gchararray' : _const,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gtk-stream
3
- Version: 0.12
3
+ Version: 0.13
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