gtk-stream 0.7.1__py3-none-any.whl → 0.8__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/__init__.py CHANGED
@@ -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
-
gtk_stream/_version.py ADDED
@@ -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
gtk_stream/parser.py CHANGED
@@ -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,14 +1,16 @@
1
- gtk_stream/__init__.py,sha256=pDhUSN4AYNsP8_tilU1zmDCYdiv7ak4PE1TW0qFrDlg,99
1
+ gtk_stream/__init__.py,sha256=y6JLknVFexWrSo_Zl7-TXrPR6EQ5XVMeFO1bUzLN9Lg,98
2
+ gtk_stream/_version.py,sha256=h5n78EXo879PK26kXI5GISCkixORDd-2bYdny3F_ook,406
2
3
  gtk_stream/application.py,sha256=gOsJv6AUizfQZrwNe9LxVz9dOKScxzw97XO3lRTmxRs,3886
3
4
  gtk_stream/command_line.py,sha256=Ej4mmPiuYjr5-1JrvjGK0BDitKUCfVEI9uHp1p_FAr4,1520
4
5
  gtk_stream/common.py,sha256=xdscxYgBg_Ux6iyk26gB-AMSgoUIqlZUPgso5YS_gKE,2106
5
- gtk_stream/parser.py,sha256=hzy-hHsLAHZb7fQk40fRNY8tOC9onBk5jAOhT904D6Y,8356
6
+ gtk_stream/parser.py,sha256=d3JH0I5I9MSCSnfpMtbCaWfnKZzY5XzNKZQ6skH96lw,8392
6
7
  gtk_stream/properties.py,sha256=r_zxYIBe5g8SGueuhtf5CIAWesmm2tXv6llh6657a74,2374
7
- gtk_stream/documents/__init__.py,sha256=_y2h6kINZGuYibRgfgVwtmZGmSdIBHZP0TUB182Ado8,741
8
+ gtk_stream/documents/__init__.py,sha256=53kBShNAFtbwpYvOVdHJRHfSYF5yrT6RNS6Tl5TYkco,783
8
9
  gtk_stream/documents/classes/Box.py,sha256=d01o2-JQ3-k0VjvvY8E7mly-u_f1v1NqYz1IDjHZLUo,1381
9
10
  gtk_stream/documents/classes/Button.py,sha256=0Cs5DOt-FoDVLWIktJHuH6OasI58TNI0Gs3uIKJDj2o,1563
10
11
  gtk_stream/documents/classes/Document.py,sha256=drWy-2HzgmpxSmRR27uIydlTJbaYTiRJPWwpELXrGSk,2135
11
12
  gtk_stream/documents/classes/Dropdown.py,sha256=1azU_iHbr_-099wj0_TDfDfZ5xKyh9xLFd5GvbNMw14,2443
13
+ gtk_stream/documents/classes/Entry.py,sha256=MuhoUMAKKSj24KA77VCqBtedE_lStMrXvR-3wB9amSw,1137
12
14
  gtk_stream/documents/classes/FlowBox.py,sha256=UoVYS2j_osOV-IgbVoaqluTBCiaXus5dq2e9qhAu2Xo,1225
13
15
  gtk_stream/documents/classes/Frame.py,sha256=zAZvsT-YTZMijsgk7p0YVf6siAmFoCCSXouZo9XDpsA,1222
14
16
  gtk_stream/documents/classes/Grid.py,sha256=jDJ9U1GJZ45hi1VvPsCwFILN7CwEkgjqYqhTzMdtX9o,1249
@@ -21,8 +23,8 @@ gtk_stream/documents/classes/Separator.py,sha256=uw_EgAKs_6pNA8nrOLzruIlJfk4uaog
21
23
  gtk_stream/documents/classes/Stack.py,sha256=YA6NDzZL2u4Ko8GXtx8Or-jEWGMCEw2cC1HNkAMRw-8,1030
22
24
  gtk_stream/documents/classes/Switch.py,sha256=OLCWWNeVyNrk4Tu3JDe64FqsLhedh3dDzKDKne2CyDw,1382
23
25
  gtk_stream/documents/classes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
- gtk_stream-0.7.1.dist-info/METADATA,sha256=SwTjqF9xkKbnfugzNuA9zOd6Fljaq0AsIC_es6YiY34,806
25
- gtk_stream-0.7.1.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
26
- gtk_stream-0.7.1.dist-info/entry_points.txt,sha256=PmhKTb4MMQM6dN2HJcoDSMI8L0lZIFIlFn-BgdfPDpo,60
27
- gtk_stream-0.7.1.dist-info/top_level.txt,sha256=vE9zfHGe9Ke7FSe0wBK2WYJI-BpcQNu6xDC3Cu5O8rQ,11
28
- gtk_stream-0.7.1.dist-info/RECORD,,
26
+ gtk_stream-0.8.dist-info/METADATA,sha256=890j69yfLxhmPbS9Scl27K4p0n_BtKdSA5mc6Bxn2Rw,804
27
+ gtk_stream-0.8.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
28
+ gtk_stream-0.8.dist-info/entry_points.txt,sha256=PmhKTb4MMQM6dN2HJcoDSMI8L0lZIFIlFn-BgdfPDpo,60
29
+ gtk_stream-0.8.dist-info/top_level.txt,sha256=vE9zfHGe9Ke7FSe0wBK2WYJI-BpcQNu6xDC3Cu5O8rQ,11
30
+ gtk_stream-0.8.dist-info/RECORD,,