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.
- {gtk_stream-0.12 → gtk_stream-0.13}/PKG-INFO +1 -1
- {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/_version.py +2 -2
- {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/__init__.py +1 -1
- {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/Box.py +1 -1
- {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/Stack.py +19 -1
- {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/parser.py +3 -2
- {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/properties.py +1 -0
- {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream.egg-info/PKG-INFO +1 -1
- {gtk_stream-0.12 → gtk_stream-0.13}/README.md +0 -0
- {gtk_stream-0.12 → gtk_stream-0.13}/gtk-stream +0 -0
- {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/__init__.py +0 -0
- {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/application.py +0 -0
- {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/command_line.py +0 -0
- {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/common.py +0 -0
- {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/Button.py +0 -0
- {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/Document.py +0 -0
- {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/Dropdown.py +0 -0
- {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/Entry.py +0 -0
- {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/FlowBox.py +0 -0
- {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/Frame.py +0 -0
- {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/Grid.py +0 -0
- {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/Label.py +0 -0
- {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/Paned.py +0 -0
- {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/Picture.py +0 -0
- {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/ProgressBar.py +0 -0
- {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/Scale.py +0 -0
- {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/ScrolledWindow.py +0 -0
- {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/Separator.py +0 -0
- {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/Switch.py +0 -0
- {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream/documents/classes/__init__.py +0 -0
- {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream.egg-info/SOURCES.txt +0 -0
- {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream.egg-info/dependency_links.txt +0 -0
- {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream.egg-info/entry_points.txt +0 -0
- {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream.egg-info/requires.txt +0 -0
- {gtk_stream-0.12 → gtk_stream-0.13}/gtk_stream.egg-info/top_level.txt +0 -0
- {gtk_stream-0.12 → gtk_stream-0.13}/pyproject.toml +0 -0
- {gtk_stream-0.12 → gtk_stream-0.13}/setup.cfg +0 -0
@@ -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.
|
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
|
-
|
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,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|