gtk-stream 0.6__py3-none-any.whl → 0.7__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/application.py +16 -1
- gtk_stream/command_line.py +33 -2
- gtk_stream/common.py +16 -0
- gtk_stream/documents/__init__.py +1 -0
- gtk_stream/documents/classes/Box.py +16 -0
- gtk_stream/documents/classes/Button.py +16 -0
- gtk_stream/documents/classes/Document.py +16 -0
- gtk_stream/documents/classes/Dropdown.py +16 -0
- gtk_stream/documents/classes/FlowBox.py +34 -0
- gtk_stream/documents/classes/Frame.py +16 -0
- gtk_stream/documents/classes/Grid.py +16 -0
- gtk_stream/documents/classes/Label.py +16 -0
- gtk_stream/documents/classes/Paned.py +16 -0
- gtk_stream/documents/classes/Picture.py +16 -0
- gtk_stream/documents/classes/ProgressBar.py +16 -0
- gtk_stream/documents/classes/ScrolledWindow.py +16 -0
- gtk_stream/documents/classes/Separator.py +16 -0
- gtk_stream/documents/classes/Stack.py +16 -0
- gtk_stream/documents/classes/Switch.py +16 -0
- gtk_stream/parser.py +20 -1
- gtk_stream/properties.py +16 -0
- {gtk_stream-0.6.dist-info → gtk_stream-0.7.dist-info}/METADATA +9 -2
- gtk_stream-0.7.dist-info/RECORD +28 -0
- gtk_stream-0.6.dist-info/RECORD +0 -27
- {gtk_stream-0.6.dist-info → gtk_stream-0.7.dist-info}/WHEEL +0 -0
- {gtk_stream-0.6.dist-info → gtk_stream-0.7.dist-info}/entry_points.txt +0 -0
- {gtk_stream-0.6.dist-info → gtk_stream-0.7.dist-info}/top_level.txt +0 -0
gtk_stream/application.py
CHANGED
@@ -1,5 +1,20 @@
|
|
1
|
-
|
1
|
+
# Gtk-Stream : A stream-based GUI protocol
|
2
|
+
# Copyright (C) 2024 Marc Coiffier
|
3
|
+
#
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
7
|
+
# (at your option) any later version.
|
8
|
+
#
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
# GNU General Public License for more details.
|
13
|
+
#
|
14
|
+
# You should have received a copy of the GNU General Public License
|
15
|
+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2
16
|
|
17
|
+
import sys
|
3
18
|
from . import Gtk, GLib, Gdk
|
4
19
|
from .common import printEvent
|
5
20
|
from .properties import parse_property, get_prop_type
|
gtk_stream/command_line.py
CHANGED
@@ -1,14 +1,45 @@
|
|
1
|
+
# Gtk-Stream : A stream-based GUI protocol
|
2
|
+
# Copyright (C) 2024 Marc Coiffier
|
3
|
+
#
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
7
|
+
# (at your option) any later version.
|
8
|
+
#
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
# GNU General Public License for more details.
|
13
|
+
#
|
14
|
+
# You should have received a copy of the GNU General Public License
|
15
|
+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
16
|
+
|
1
17
|
import io
|
2
18
|
import xml.sax as sax
|
3
19
|
import signal
|
20
|
+
import sys
|
4
21
|
|
5
22
|
from .parser import GtkStreamXMLHandler
|
23
|
+
from . import GLib
|
24
|
+
|
25
|
+
class GtkStreamErrorHandler(sax.handler.ErrorHandler):
|
26
|
+
def error(self, exc):
|
27
|
+
print("Error", file=sys.stderr)
|
28
|
+
raise exc
|
29
|
+
def fatalError(self, exc):
|
30
|
+
print("Fatal error", file=sys.stderr)
|
31
|
+
raise exc
|
6
32
|
|
7
33
|
def main():
|
8
34
|
handler = GtkStreamXMLHandler()
|
35
|
+
errHandler = GtkStreamErrorHandler()
|
9
36
|
parser = sax.make_parser()
|
10
37
|
parser.setContentHandler(handler)
|
38
|
+
parser.setErrorHandler(errHandler)
|
11
39
|
try:
|
12
40
|
parser.parse(io.FileIO(0, 'r', closefd=False))
|
13
|
-
|
14
|
-
|
41
|
+
except Exception as e:
|
42
|
+
def quit():
|
43
|
+
handler.app.quit()
|
44
|
+
GLib.idle_add(quit)
|
45
|
+
print(f"Done with exception : {e}\n", file=sys.stderr)
|
gtk_stream/common.py
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
# Gtk-Stream : A stream-based GUI protocol
|
2
|
+
# Copyright (C) 2024 Marc Coiffier
|
3
|
+
#
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
7
|
+
# (at your option) any later version.
|
8
|
+
#
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
# GNU General Public License for more details.
|
13
|
+
#
|
14
|
+
# You should have received a copy of the GNU General Public License
|
15
|
+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
16
|
+
|
1
17
|
import sys
|
2
18
|
|
3
19
|
def _data_str_default(*args):
|
gtk_stream/documents/__init__.py
CHANGED
@@ -10,6 +10,7 @@ from .classes.Dropdown import Dropdown, Item
|
|
10
10
|
from .classes.Switch import Switch
|
11
11
|
|
12
12
|
from .classes.Box import Box, BoxPrepend
|
13
|
+
from .classes.FlowBox import FlowBox, FlowBoxPrepend
|
13
14
|
from .classes.ScrolledWindow import ScrolledWindow
|
14
15
|
from .classes.Paned import Paned
|
15
16
|
from .classes.Frame import Frame, FrameLabel
|
@@ -1,3 +1,19 @@
|
|
1
|
+
# Gtk-Stream : A stream-based GUI protocol
|
2
|
+
# Copyright (C) 2024 Marc Coiffier
|
3
|
+
#
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
7
|
+
# (at your option) any later version.
|
8
|
+
#
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
# GNU General Public License for more details.
|
13
|
+
#
|
14
|
+
# You should have received a copy of the GNU General Public License
|
15
|
+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
16
|
+
|
1
17
|
from ... import Gtk
|
2
18
|
from .. import Document, PseudoDocument
|
3
19
|
|
@@ -1,3 +1,19 @@
|
|
1
|
+
# Gtk-Stream : A stream-based GUI protocol
|
2
|
+
# Copyright (C) 2024 Marc Coiffier
|
3
|
+
#
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
7
|
+
# (at your option) any later version.
|
8
|
+
#
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
# GNU General Public License for more details.
|
13
|
+
#
|
14
|
+
# You should have received a copy of the GNU General Public License
|
15
|
+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
16
|
+
|
1
17
|
from ... import Gtk
|
2
18
|
from ...common import printEvent
|
3
19
|
from .. import Document
|
@@ -1,3 +1,19 @@
|
|
1
|
+
# Gtk-Stream : A stream-based GUI protocol
|
2
|
+
# Copyright (C) 2024 Marc Coiffier
|
3
|
+
#
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
7
|
+
# (at your option) any later version.
|
8
|
+
#
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
# GNU General Public License for more details.
|
13
|
+
#
|
14
|
+
# You should have received a copy of the GNU General Public License
|
15
|
+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
16
|
+
|
1
17
|
from ...properties import parse_property, get_prop_type
|
2
18
|
|
3
19
|
class Document:
|
@@ -1,3 +1,19 @@
|
|
1
|
+
# Gtk-Stream : A stream-based GUI protocol
|
2
|
+
# Copyright (C) 2024 Marc Coiffier
|
3
|
+
#
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
7
|
+
# (at your option) any later version.
|
8
|
+
#
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
# GNU General Public License for more details.
|
13
|
+
#
|
14
|
+
# You should have received a copy of the GNU General Public License
|
15
|
+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
16
|
+
|
1
17
|
from ... import Gtk, Gio, GObject
|
2
18
|
from .. import Document
|
3
19
|
from ...common import printEvent
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# Gtk-Stream : A stream-based GUI protocol
|
2
|
+
# Copyright (C) 2024 Marc Coiffier
|
3
|
+
#
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
7
|
+
# (at your option) any later version.
|
8
|
+
#
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
# GNU General Public License for more details.
|
13
|
+
#
|
14
|
+
# You should have received a copy of the GNU General Public License
|
15
|
+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
16
|
+
|
17
|
+
from ... import Gtk
|
18
|
+
from .. import Document, PseudoDocument
|
19
|
+
|
20
|
+
class FlowBoxPrepend(PseudoDocument):
|
21
|
+
def __init__(self, app):
|
22
|
+
super().__init__(app)
|
23
|
+
|
24
|
+
class FlowBox(Document):
|
25
|
+
__g_class__ = Gtk.FlowBox
|
26
|
+
def __init__(self, app, **kwargs):
|
27
|
+
super().__init__(app, **kwargs)
|
28
|
+
def render_raw(self):
|
29
|
+
return Gtk.FlowBox()
|
30
|
+
def insert_child(self, w, d):
|
31
|
+
if isinstance(d, FlowBoxPrepend):
|
32
|
+
w.prepend(d.render())
|
33
|
+
else:
|
34
|
+
w.append(d.render())
|
@@ -1,3 +1,19 @@
|
|
1
|
+
# Gtk-Stream : A stream-based GUI protocol
|
2
|
+
# Copyright (C) 2024 Marc Coiffier
|
3
|
+
#
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
7
|
+
# (at your option) any later version.
|
8
|
+
#
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
# GNU General Public License for more details.
|
13
|
+
#
|
14
|
+
# You should have received a copy of the GNU General Public License
|
15
|
+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
16
|
+
|
1
17
|
from ... import Gtk
|
2
18
|
from .. import Document, PseudoDocument
|
3
19
|
|
@@ -1,3 +1,19 @@
|
|
1
|
+
# Gtk-Stream : A stream-based GUI protocol
|
2
|
+
# Copyright (C) 2024 Marc Coiffier
|
3
|
+
#
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
7
|
+
# (at your option) any later version.
|
8
|
+
#
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
# GNU General Public License for more details.
|
13
|
+
#
|
14
|
+
# You should have received a copy of the GNU General Public License
|
15
|
+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
16
|
+
|
1
17
|
from ... import Gtk
|
2
18
|
from .. import Document, PseudoDocument
|
3
19
|
|
@@ -1,3 +1,19 @@
|
|
1
|
+
# Gtk-Stream : A stream-based GUI protocol
|
2
|
+
# Copyright (C) 2024 Marc Coiffier
|
3
|
+
#
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
7
|
+
# (at your option) any later version.
|
8
|
+
#
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
# GNU General Public License for more details.
|
13
|
+
#
|
14
|
+
# You should have received a copy of the GNU General Public License
|
15
|
+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
16
|
+
|
1
17
|
from ... import Gtk
|
2
18
|
from .. import Document
|
3
19
|
|
@@ -1,3 +1,19 @@
|
|
1
|
+
# Gtk-Stream : A stream-based GUI protocol
|
2
|
+
# Copyright (C) 2024 Marc Coiffier
|
3
|
+
#
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
7
|
+
# (at your option) any later version.
|
8
|
+
#
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
# GNU General Public License for more details.
|
13
|
+
#
|
14
|
+
# You should have received a copy of the GNU General Public License
|
15
|
+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
16
|
+
|
1
17
|
from ... import Gtk
|
2
18
|
from .. import Document
|
3
19
|
|
@@ -1,3 +1,19 @@
|
|
1
|
+
# Gtk-Stream : A stream-based GUI protocol
|
2
|
+
# Copyright (C) 2024 Marc Coiffier
|
3
|
+
#
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
7
|
+
# (at your option) any later version.
|
8
|
+
#
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
# GNU General Public License for more details.
|
13
|
+
#
|
14
|
+
# You should have received a copy of the GNU General Public License
|
15
|
+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
16
|
+
|
1
17
|
import sys
|
2
18
|
from ... import Gtk
|
3
19
|
from .. import Document
|
@@ -1,3 +1,19 @@
|
|
1
|
+
# Gtk-Stream : A stream-based GUI protocol
|
2
|
+
# Copyright (C) 2024 Marc Coiffier
|
3
|
+
#
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
7
|
+
# (at your option) any later version.
|
8
|
+
#
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
# GNU General Public License for more details.
|
13
|
+
#
|
14
|
+
# You should have received a copy of the GNU General Public License
|
15
|
+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
16
|
+
|
1
17
|
from ... import Gtk
|
2
18
|
from .. import Document
|
3
19
|
|
@@ -1,3 +1,19 @@
|
|
1
|
+
# Gtk-Stream : A stream-based GUI protocol
|
2
|
+
# Copyright (C) 2024 Marc Coiffier
|
3
|
+
#
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
7
|
+
# (at your option) any later version.
|
8
|
+
#
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
# GNU General Public License for more details.
|
13
|
+
#
|
14
|
+
# You should have received a copy of the GNU General Public License
|
15
|
+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
16
|
+
|
1
17
|
from ... import Gtk
|
2
18
|
from .. import Document
|
3
19
|
|
@@ -1,3 +1,19 @@
|
|
1
|
+
# Gtk-Stream : A stream-based GUI protocol
|
2
|
+
# Copyright (C) 2024 Marc Coiffier
|
3
|
+
#
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
7
|
+
# (at your option) any later version.
|
8
|
+
#
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
# GNU General Public License for more details.
|
13
|
+
#
|
14
|
+
# You should have received a copy of the GNU General Public License
|
15
|
+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
16
|
+
|
1
17
|
from ... import Gtk
|
2
18
|
from .. import Document
|
3
19
|
|
@@ -1,3 +1,19 @@
|
|
1
|
+
# Gtk-Stream : A stream-based GUI protocol
|
2
|
+
# Copyright (C) 2024 Marc Coiffier
|
3
|
+
#
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
7
|
+
# (at your option) any later version.
|
8
|
+
#
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
# GNU General Public License for more details.
|
13
|
+
#
|
14
|
+
# You should have received a copy of the GNU General Public License
|
15
|
+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
16
|
+
|
1
17
|
from ... import Gtk
|
2
18
|
from .. import Document, PseudoDocument
|
3
19
|
|
@@ -1,3 +1,19 @@
|
|
1
|
+
# Gtk-Stream : A stream-based GUI protocol
|
2
|
+
# Copyright (C) 2024 Marc Coiffier
|
3
|
+
#
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
7
|
+
# (at your option) any later version.
|
8
|
+
#
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
# GNU General Public License for more details.
|
13
|
+
#
|
14
|
+
# You should have received a copy of the GNU General Public License
|
15
|
+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
16
|
+
|
1
17
|
from ... import Gtk
|
2
18
|
from ...common import printEvent
|
3
19
|
from .. import Document
|
gtk_stream/parser.py
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
# Gtk-Stream : A stream-based GUI protocol
|
2
|
+
# Copyright (C) 2024 Marc Coiffier
|
3
|
+
#
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
7
|
+
# (at your option) any later version.
|
8
|
+
#
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
# GNU General Public License for more details.
|
13
|
+
#
|
14
|
+
# You should have received a copy of the GNU General Public License
|
15
|
+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
16
|
+
|
1
17
|
import threading
|
2
18
|
import signal
|
3
19
|
import sys
|
@@ -29,7 +45,9 @@ WIDGET_DOCUMENTS = {
|
|
29
45
|
'picture' : docs.Picture,
|
30
46
|
'separator' : docs.Separator,
|
31
47
|
'scrolled-window' : docs.ScrolledWindow,
|
32
|
-
'stack' : docs.Stack
|
48
|
+
'stack' : docs.Stack,
|
49
|
+
'flow-box' : docs.FlowBox,
|
50
|
+
'flow-box-prepend': docs.FlowBoxPrepend
|
33
51
|
}
|
34
52
|
|
35
53
|
class GtkStreamXMLHandler(sax.ContentHandler):
|
@@ -73,6 +91,7 @@ class GtkStreamXMLHandler(sax.ContentHandler):
|
|
73
91
|
threading.Thread(target = appMain).start()
|
74
92
|
def on_sigint(a,b):
|
75
93
|
def cb():
|
94
|
+
print("SIGINT received", file=sys.stderr)
|
76
95
|
self.app.quit()
|
77
96
|
sys.exit(0)
|
78
97
|
GLib.idle_add(cb)
|
gtk_stream/properties.py
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
# Gtk-Stream : A stream-based GUI protocol
|
2
|
+
# Copyright (C) 2024 Marc Coiffier
|
3
|
+
#
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
7
|
+
# (at your option) any later version.
|
8
|
+
#
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
# GNU General Public License for more details.
|
13
|
+
#
|
14
|
+
# You should have received a copy of the GNU General Public License
|
15
|
+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
16
|
+
|
1
17
|
import sys
|
2
18
|
|
3
19
|
from . import Gtk
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: gtk-stream
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.7
|
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/
|
@@ -9,5 +9,12 @@ Classifier: Development Status :: 4 - Beta
|
|
9
9
|
Classifier: Intended Audience :: Developers
|
10
10
|
Classifier: Environment :: X11 Applications :: GTK
|
11
11
|
Classifier: Topic :: Software Development :: User Interfaces
|
12
|
-
Classifier: License :: OSI Approved :: GNU General Public License
|
12
|
+
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
13
|
+
Description-Content-Type: text/markdown
|
13
14
|
Requires-Dist: pygobject
|
15
|
+
|
16
|
+
GTK-Stream
|
17
|
+
==========
|
18
|
+
|
19
|
+
- Pretty documentation : [link](https://coiffier.net/projects/gtk-stream/)
|
20
|
+
- Same documentation, but less pretty : [link](doc/index.md)
|
@@ -0,0 +1,28 @@
|
|
1
|
+
gtk_stream/__init__.py,sha256=pDhUSN4AYNsP8_tilU1zmDCYdiv7ak4PE1TW0qFrDlg,99
|
2
|
+
gtk_stream/application.py,sha256=g95IbeV2fjKf55bRqBCl9EpdiA-sR9XHmp6BMGZBAbo,3836
|
3
|
+
gtk_stream/command_line.py,sha256=6Yj6NV12cqlnSE5ZHTjNqxE6ZtosuWAiJm66awpJ2H8,1503
|
4
|
+
gtk_stream/common.py,sha256=wjByU_xhzgCKJFSkEr0gNsi2dqv38kA9_2DodRRrBw4,1310
|
5
|
+
gtk_stream/parser.py,sha256=9AfSOb-T7O98A-XIH16eBBC6eA0jsFmEVi3F19kAiGY,8063
|
6
|
+
gtk_stream/properties.py,sha256=r_zxYIBe5g8SGueuhtf5CIAWesmm2tXv6llh6657a74,2374
|
7
|
+
gtk_stream/documents/__init__.py,sha256=_y2h6kINZGuYibRgfgVwtmZGmSdIBHZP0TUB182Ado8,741
|
8
|
+
gtk_stream/documents/classes/Box.py,sha256=d01o2-JQ3-k0VjvvY8E7mly-u_f1v1NqYz1IDjHZLUo,1381
|
9
|
+
gtk_stream/documents/classes/Button.py,sha256=NoDuAwd2XqXY8ZvyOg9xeKIru71JBi4ZFS3Oe6P478Q,1529
|
10
|
+
gtk_stream/documents/classes/Document.py,sha256=m_N7UCxHmdlQ34OvP91EvUEdl40CzuRngeJRj9w3dPU,2109
|
11
|
+
gtk_stream/documents/classes/Dropdown.py,sha256=NUUQ24yrJomlwcXWgm73kEsAsy4Eej6udg77HFBgiZs,2426
|
12
|
+
gtk_stream/documents/classes/FlowBox.py,sha256=UoVYS2j_osOV-IgbVoaqluTBCiaXus5dq2e9qhAu2Xo,1225
|
13
|
+
gtk_stream/documents/classes/Frame.py,sha256=zAZvsT-YTZMijsgk7p0YVf6siAmFoCCSXouZo9XDpsA,1222
|
14
|
+
gtk_stream/documents/classes/Grid.py,sha256=jDJ9U1GJZ45hi1VvPsCwFILN7CwEkgjqYqhTzMdtX9o,1249
|
15
|
+
gtk_stream/documents/classes/Label.py,sha256=bBNBTvGs6fM8uLf4EDb2Ro8FmCeS27cnU1Ao-44nRYs,1023
|
16
|
+
gtk_stream/documents/classes/Paned.py,sha256=q1goKJMWBg1d3hS0eanPBxzBqLB-Pz5hUnH9N-RXXh8,1392
|
17
|
+
gtk_stream/documents/classes/Picture.py,sha256=kqrlGPeMrqjzeyKzjbMJschQA2akJI0ZXd4PbEfmGPY,1018
|
18
|
+
gtk_stream/documents/classes/ProgressBar.py,sha256=NPJtP3qaKiZUEAYEHZk4FEoWSFn2KVorI2SVb8cDnW0,966
|
19
|
+
gtk_stream/documents/classes/ScrolledWindow.py,sha256=WaTPgz6GBC-hjH83SQT2OGUdCapHAgO3xEmSMJZ8q70,1041
|
20
|
+
gtk_stream/documents/classes/Separator.py,sha256=uw_EgAKs_6pNA8nrOLzruIlJfk4uaogB0p_jeoY0PHM,960
|
21
|
+
gtk_stream/documents/classes/Stack.py,sha256=YA6NDzZL2u4Ko8GXtx8Or-jEWGMCEw2cC1HNkAMRw-8,1030
|
22
|
+
gtk_stream/documents/classes/Switch.py,sha256=bLOkyAy_v2T_Gli9c6TAhnUJcqhbnxbD9oswPdTAsGo,1365
|
23
|
+
gtk_stream/documents/classes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
24
|
+
gtk_stream-0.7.dist-info/METADATA,sha256=ReGnW0Nugu54Bbmm4GMDzE0vxxoZBk1Mfy8BQQPzv4c,804
|
25
|
+
gtk_stream-0.7.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
26
|
+
gtk_stream-0.7.dist-info/entry_points.txt,sha256=PmhKTb4MMQM6dN2HJcoDSMI8L0lZIFIlFn-BgdfPDpo,60
|
27
|
+
gtk_stream-0.7.dist-info/top_level.txt,sha256=vE9zfHGe9Ke7FSe0wBK2WYJI-BpcQNu6xDC3Cu5O8rQ,11
|
28
|
+
gtk_stream-0.7.dist-info/RECORD,,
|
gtk_stream-0.6.dist-info/RECORD
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
gtk_stream/__init__.py,sha256=pDhUSN4AYNsP8_tilU1zmDCYdiv7ak4PE1TW0qFrDlg,99
|
2
|
-
gtk_stream/application.py,sha256=I3uXFdJwUuEdqND8eGDEEuAFr6T-WIizv_8eCZsEnmU,3117
|
3
|
-
gtk_stream/command_line.py,sha256=c2ghqIQB5hYxtCszss1z84yKoeRYvaMJJMi4aiTspWg,312
|
4
|
-
gtk_stream/common.py,sha256=sEw15nVw9SVp8eLVOB5Zj1JITVhUhCF0i3PSwpd8lis,590
|
5
|
-
gtk_stream/parser.py,sha256=BUuJbPr8CUtO6msfxIXzdRpJ-crN7M18zOMLBj93_zs,7194
|
6
|
-
gtk_stream/properties.py,sha256=YfWlSUQEaIE2Cz5zjnajK6JWncWvWv26PemGRJQXoFQ,1654
|
7
|
-
gtk_stream/documents/__init__.py,sha256=jqjJ4yY4fzpFbDfhe0pwR1ahg2jLaeLC-eyH6YTuLpQ,681
|
8
|
-
gtk_stream/documents/classes/Box.py,sha256=-L0OSIcPCOYedJqD9zPpe183EJJkClboX1-3yGHmnL0,661
|
9
|
-
gtk_stream/documents/classes/Button.py,sha256=HeIYBix4qLVZc_a6Fs_MofyqxHeXbuZzsk_FneGLGb4,809
|
10
|
-
gtk_stream/documents/classes/Document.py,sha256=gqil7_Kzp-TmDdr6JD0nwZqwjfSkZUwK_92WeOPRfg0,1389
|
11
|
-
gtk_stream/documents/classes/Dropdown.py,sha256=-H344e7PsfwlnHT7eYBC35rVFkwVPSRJL3szU6w2A8U,1706
|
12
|
-
gtk_stream/documents/classes/Frame.py,sha256=xG8Wts9xBw0Kk7VKv_YHSq-zf2coeRRtQKQkdtJMXAc,502
|
13
|
-
gtk_stream/documents/classes/Grid.py,sha256=HG7zW6i4h9MMVnmBwvDI8A1mspmRk35HOc0lwGYxPQc,529
|
14
|
-
gtk_stream/documents/classes/Label.py,sha256=3KI9JyVaBhgw0RZ7jK1NEn6mZg7GG0LrZz-Y_NSS2Kg,303
|
15
|
-
gtk_stream/documents/classes/Paned.py,sha256=4xG_BWNlOn3Esd_99953OAMGmjWkdkGSHKJhnprtzG8,672
|
16
|
-
gtk_stream/documents/classes/Picture.py,sha256=fNtM3TLkr2au92m8MCJmE3fYvyajFgw1VxMfj7dYV3s,298
|
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
|
20
|
-
gtk_stream/documents/classes/Stack.py,sha256=d8Gj9CFHV2KfofO4cRJQf8v7XSLJ42EJUV9IjVy6Dpc,310
|
21
|
-
gtk_stream/documents/classes/Switch.py,sha256=KPqCQqzgpWCfiWTEwMXYbV4LzcjBLh5GnH0XTusPvqQ,645
|
22
|
-
gtk_stream/documents/classes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
23
|
-
gtk_stream-0.6.dist-info/METADATA,sha256=WhVEXTmW0SHx16pN1pGfKUOJacSbjBwPdxOzBFUeaIs,600
|
24
|
-
gtk_stream-0.6.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
25
|
-
gtk_stream-0.6.dist-info/entry_points.txt,sha256=PmhKTb4MMQM6dN2HJcoDSMI8L0lZIFIlFn-BgdfPDpo,60
|
26
|
-
gtk_stream-0.6.dist-info/top_level.txt,sha256=vE9zfHGe9Ke7FSe0wBK2WYJI-BpcQNu6xDC3Cu5O8rQ,11
|
27
|
-
gtk_stream-0.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|