gtk-stream 0.7.1__tar.gz → 0.8__tar.gz

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.
Files changed (36) hide show
  1. {gtk_stream-0.7.1 → gtk_stream-0.8}/PKG-INFO +1 -1
  2. gtk_stream-0.8/gtk-stream +21 -0
  3. {gtk_stream-0.7.1 → gtk_stream-0.8}/gtk_stream/__init__.py +0 -1
  4. gtk_stream-0.8/gtk_stream/_version.py +16 -0
  5. {gtk_stream-0.7.1 → gtk_stream-0.8}/gtk_stream/documents/__init__.py +1 -0
  6. gtk_stream-0.8/gtk_stream/documents/classes/Entry.py +28 -0
  7. {gtk_stream-0.7.1 → gtk_stream-0.8}/gtk_stream/parser.py +2 -1
  8. {gtk_stream-0.7.1 → gtk_stream-0.8}/gtk_stream.egg-info/PKG-INFO +1 -1
  9. {gtk_stream-0.7.1 → gtk_stream-0.8}/gtk_stream.egg-info/SOURCES.txt +3 -0
  10. {gtk_stream-0.7.1 → gtk_stream-0.8}/pyproject.toml +6 -2
  11. {gtk_stream-0.7.1 → gtk_stream-0.8}/README.md +0 -0
  12. {gtk_stream-0.7.1 → gtk_stream-0.8}/gtk_stream/application.py +0 -0
  13. {gtk_stream-0.7.1 → gtk_stream-0.8}/gtk_stream/command_line.py +0 -0
  14. {gtk_stream-0.7.1 → gtk_stream-0.8}/gtk_stream/common.py +0 -0
  15. {gtk_stream-0.7.1 → gtk_stream-0.8}/gtk_stream/documents/classes/Box.py +0 -0
  16. {gtk_stream-0.7.1 → gtk_stream-0.8}/gtk_stream/documents/classes/Button.py +0 -0
  17. {gtk_stream-0.7.1 → gtk_stream-0.8}/gtk_stream/documents/classes/Document.py +0 -0
  18. {gtk_stream-0.7.1 → gtk_stream-0.8}/gtk_stream/documents/classes/Dropdown.py +0 -0
  19. {gtk_stream-0.7.1 → gtk_stream-0.8}/gtk_stream/documents/classes/FlowBox.py +0 -0
  20. {gtk_stream-0.7.1 → gtk_stream-0.8}/gtk_stream/documents/classes/Frame.py +0 -0
  21. {gtk_stream-0.7.1 → gtk_stream-0.8}/gtk_stream/documents/classes/Grid.py +0 -0
  22. {gtk_stream-0.7.1 → gtk_stream-0.8}/gtk_stream/documents/classes/Label.py +0 -0
  23. {gtk_stream-0.7.1 → gtk_stream-0.8}/gtk_stream/documents/classes/Paned.py +0 -0
  24. {gtk_stream-0.7.1 → gtk_stream-0.8}/gtk_stream/documents/classes/Picture.py +0 -0
  25. {gtk_stream-0.7.1 → gtk_stream-0.8}/gtk_stream/documents/classes/ProgressBar.py +0 -0
  26. {gtk_stream-0.7.1 → gtk_stream-0.8}/gtk_stream/documents/classes/ScrolledWindow.py +0 -0
  27. {gtk_stream-0.7.1 → gtk_stream-0.8}/gtk_stream/documents/classes/Separator.py +0 -0
  28. {gtk_stream-0.7.1 → gtk_stream-0.8}/gtk_stream/documents/classes/Stack.py +0 -0
  29. {gtk_stream-0.7.1 → gtk_stream-0.8}/gtk_stream/documents/classes/Switch.py +0 -0
  30. {gtk_stream-0.7.1 → gtk_stream-0.8}/gtk_stream/documents/classes/__init__.py +0 -0
  31. {gtk_stream-0.7.1 → gtk_stream-0.8}/gtk_stream/properties.py +0 -0
  32. {gtk_stream-0.7.1 → gtk_stream-0.8}/gtk_stream.egg-info/dependency_links.txt +0 -0
  33. {gtk_stream-0.7.1 → gtk_stream-0.8}/gtk_stream.egg-info/entry_points.txt +0 -0
  34. {gtk_stream-0.7.1 → gtk_stream-0.8}/gtk_stream.egg-info/requires.txt +0 -0
  35. {gtk_stream-0.7.1 → gtk_stream-0.8}/gtk_stream.egg-info/top_level.txt +0 -0
  36. {gtk_stream-0.7.1 → gtk_stream-0.8}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gtk-stream
3
- Version: 0.7.1
3
+ Version: 0.8
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/
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env python3
2
+
3
+ # Gtk-Stream : A stream-based GUI protocol
4
+ # Copyright (C) 2024 Marc Coiffier
5
+ #
6
+ # This program is free software: you can redistribute it and/or modify
7
+ # it under the terms of the GNU General Public License as published by
8
+ # the Free Software Foundation, either version 3 of the License, or
9
+ # (at your option) any later version.
10
+ #
11
+ # This program is distributed in the hope that it will be useful,
12
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ # GNU General Public License for more details.
15
+ #
16
+ # You should have received a copy of the GNU General Public License
17
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
18
+
19
+ from gtk_stream.command_line import main
20
+
21
+ main()
@@ -1,4 +1,3 @@
1
1
  import gi
2
2
  gi.require_version("Gtk", "4.0")
3
3
  from gi.repository import Gtk, Gdk, GLib, Gio, GObject
4
-
@@ -0,0 +1,16 @@
1
+ # file generated by setuptools_scm
2
+ # don't change, don't track in version control
3
+ TYPE_CHECKING = False
4
+ if TYPE_CHECKING:
5
+ from typing import Tuple, Union
6
+ VERSION_TUPLE = Tuple[Union[int, str], ...]
7
+ else:
8
+ VERSION_TUPLE = object
9
+
10
+ version: str
11
+ __version__: str
12
+ __version_tuple__: VERSION_TUPLE
13
+ version_tuple: VERSION_TUPLE
14
+
15
+ __version__ = version = '0.8'
16
+ __version_tuple__ = version_tuple = (0, 8)
@@ -8,6 +8,7 @@ from .classes.Separator import Separator
8
8
  from .classes.Button import Button, LinkButton
9
9
  from .classes.Dropdown import Dropdown, Item
10
10
  from .classes.Switch import Switch
11
+ from .classes.Entry import Entry
11
12
 
12
13
  from .classes.Box import Box, BoxPrepend
13
14
  from .classes.FlowBox import FlowBox, FlowBoxPrepend
@@ -0,0 +1,28 @@
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 ...common import printEvent
19
+ from .. import Document
20
+
21
+ class Entry(Document):
22
+ __g_class__ = Gtk.Entry
23
+ def __init__(self, app, id, **kwargs):
24
+ super().__init__(app, id = id, **kwargs)
25
+ def render_raw(self):
26
+ entry = Gtk.Entry()
27
+ entry.connect('changed', printEvent(self.app.logger, 'changed', self.id, get_data = lambda _: entry.get_text()))
28
+ return entry
@@ -47,7 +47,8 @@ WIDGET_DOCUMENTS = {
47
47
  'scrolled-window' : docs.ScrolledWindow,
48
48
  'stack' : docs.Stack,
49
49
  'flow-box' : docs.FlowBox,
50
- 'flow-box-prepend': docs.FlowBoxPrepend
50
+ 'flow-box-prepend': docs.FlowBoxPrepend,
51
+ 'entry' : docs.Entry
51
52
  }
52
53
 
53
54
  class GtkStreamXMLHandler(sax.ContentHandler):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gtk-stream
3
- Version: 0.7.1
3
+ Version: 0.8
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,6 +1,8 @@
1
1
  README.md
2
+ gtk-stream
2
3
  pyproject.toml
3
4
  gtk_stream/__init__.py
5
+ gtk_stream/_version.py
4
6
  gtk_stream/application.py
5
7
  gtk_stream/command_line.py
6
8
  gtk_stream/common.py
@@ -17,6 +19,7 @@ gtk_stream/documents/classes/Box.py
17
19
  gtk_stream/documents/classes/Button.py
18
20
  gtk_stream/documents/classes/Document.py
19
21
  gtk_stream/documents/classes/Dropdown.py
22
+ gtk_stream/documents/classes/Entry.py
20
23
  gtk_stream/documents/classes/FlowBox.py
21
24
  gtk_stream/documents/classes/Frame.py
22
25
  gtk_stream/documents/classes/Grid.py
@@ -1,10 +1,10 @@
1
1
  [build-system]
2
- requires = ["setuptools >= 61.0"]
2
+ requires = ["setuptools >= 61.0", "setuptools-scm"]
3
3
  build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "gtk-stream"
7
- version = "0.7.1"
7
+ dynamic = [ "version" ]
8
8
  description = "A simple stream-oriented GUI protocol"
9
9
  authors = [
10
10
  { name = "Marc Coiffier", email = "marc.coiffier@univ-grenoble-alpes.fr" }
@@ -20,6 +20,10 @@ classifiers = [
20
20
  "License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
21
21
  ]
22
22
 
23
+ [tool.setuptools_scm]
24
+ root = ".."
25
+ version_file = "gtk_stream/_version.py"
26
+
23
27
  [project.urls]
24
28
  Homepage = "https://coiffier.net/projects/gtk-stream/"
25
29
  Source = "https://coiffier.net/projects/gtk-stream/code/"
File without changes
File without changes