gtk-stream 0.7.1__py3-none-any.whl → 0.9__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 +0 -1
- gtk_stream/_version.py +16 -0
- gtk_stream/documents/__init__.py +2 -1
- gtk_stream/documents/classes/Entry.py +28 -0
- gtk_stream/documents/classes/Picture.py +8 -0
- gtk_stream/parser.py +3 -1
- {gtk_stream-0.7.1.dist-info → gtk_stream-0.9.dist-info}/METADATA +1 -1
- {gtk_stream-0.7.1.dist-info → gtk_stream-0.9.dist-info}/RECORD +11 -9
- {gtk_stream-0.7.1.dist-info → gtk_stream-0.9.dist-info}/WHEEL +0 -0
- {gtk_stream-0.7.1.dist-info → gtk_stream-0.9.dist-info}/entry_points.txt +0 -0
- {gtk_stream-0.7.1.dist-info → gtk_stream-0.9.dist-info}/top_level.txt +0 -0
gtk_stream/__init__.py
CHANGED
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.9'
|
16
|
+
__version_tuple__ = version_tuple = (0, 9)
|
gtk_stream/documents/__init__.py
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
from .classes.Document import Document, PseudoDocument
|
2
2
|
|
3
3
|
from .classes.Label import Label
|
4
|
-
from .classes.Picture import Picture
|
4
|
+
from .classes.Picture import Picture, Icon
|
5
5
|
from .classes.ProgressBar import ProgressBar
|
6
6
|
from .classes.Separator import Separator
|
7
7
|
|
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
|
@@ -25,3 +25,11 @@ class Picture(Document):
|
|
25
25
|
self.src = src
|
26
26
|
def render_raw(self):
|
27
27
|
return Gtk.Picture.new_for_filename(self.src)
|
28
|
+
|
29
|
+
class Icon(Document):
|
30
|
+
__g_class__ = Gtk.Image
|
31
|
+
def __init__(self, app, src, **kwargs):
|
32
|
+
super().__init__(app, **kwargs)
|
33
|
+
self.src = src
|
34
|
+
def render_raw(self):
|
35
|
+
return Gtk.Image.new_from_file(self.src)
|
gtk_stream/parser.py
CHANGED
@@ -43,11 +43,13 @@ WIDGET_DOCUMENTS = {
|
|
43
43
|
'link' : docs.LinkButton,
|
44
44
|
'switch' : docs.Switch,
|
45
45
|
'picture' : docs.Picture,
|
46
|
+
'icon' : docs.Icon,
|
46
47
|
'separator' : docs.Separator,
|
47
48
|
'scrolled-window' : docs.ScrolledWindow,
|
48
49
|
'stack' : docs.Stack,
|
49
50
|
'flow-box' : docs.FlowBox,
|
50
|
-
'flow-box-prepend': docs.FlowBoxPrepend
|
51
|
+
'flow-box-prepend': docs.FlowBoxPrepend,
|
52
|
+
'entry' : docs.Entry
|
51
53
|
}
|
52
54
|
|
53
55
|
class GtkStreamXMLHandler(sax.ContentHandler):
|
@@ -1,28 +1,30 @@
|
|
1
|
-
gtk_stream/__init__.py,sha256=
|
1
|
+
gtk_stream/__init__.py,sha256=y6JLknVFexWrSo_Zl7-TXrPR6EQ5XVMeFO1bUzLN9Lg,98
|
2
|
+
gtk_stream/_version.py,sha256=hKX8UWcecrr9nhVjGc3l22za_VMbIrPYQgL_u8Ufa58,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=
|
6
|
+
gtk_stream/parser.py,sha256=Ip5x63_Lx-Eu4kpTD_2TMTVLiE_oYCqs6qqTcAnUeRY,8427
|
6
7
|
gtk_stream/properties.py,sha256=r_zxYIBe5g8SGueuhtf5CIAWesmm2tXv6llh6657a74,2374
|
7
|
-
gtk_stream/documents/__init__.py,sha256=
|
8
|
+
gtk_stream/documents/__init__.py,sha256=MVqnPXrTuoKyUHJ41jgqbFr3VA5JWfI6QFfXAIE6DuQ,789
|
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
|
15
17
|
gtk_stream/documents/classes/Label.py,sha256=bBNBTvGs6fM8uLf4EDb2Ro8FmCeS27cnU1Ao-44nRYs,1023
|
16
18
|
gtk_stream/documents/classes/Paned.py,sha256=q1goKJMWBg1d3hS0eanPBxzBqLB-Pz5hUnH9N-RXXh8,1392
|
17
|
-
gtk_stream/documents/classes/Picture.py,sha256=
|
19
|
+
gtk_stream/documents/classes/Picture.py,sha256=QCLQNuQxfXmaasd-bPgXxJZYyc1e1DQkLdxCZ39gvlI,1251
|
18
20
|
gtk_stream/documents/classes/ProgressBar.py,sha256=NPJtP3qaKiZUEAYEHZk4FEoWSFn2KVorI2SVb8cDnW0,966
|
19
21
|
gtk_stream/documents/classes/ScrolledWindow.py,sha256=WaTPgz6GBC-hjH83SQT2OGUdCapHAgO3xEmSMJZ8q70,1041
|
20
22
|
gtk_stream/documents/classes/Separator.py,sha256=uw_EgAKs_6pNA8nrOLzruIlJfk4uaogB0p_jeoY0PHM,960
|
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.
|
25
|
-
gtk_stream-0.
|
26
|
-
gtk_stream-0.
|
27
|
-
gtk_stream-0.
|
28
|
-
gtk_stream-0.
|
26
|
+
gtk_stream-0.9.dist-info/METADATA,sha256=enjy2jWEEX9cFvPCW86EDe4TuyF4uvKIxeIFnoLrbco,804
|
27
|
+
gtk_stream-0.9.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
28
|
+
gtk_stream-0.9.dist-info/entry_points.txt,sha256=PmhKTb4MMQM6dN2HJcoDSMI8L0lZIFIlFn-BgdfPDpo,60
|
29
|
+
gtk_stream-0.9.dist-info/top_level.txt,sha256=vE9zfHGe9Ke7FSe0wBK2WYJI-BpcQNu6xDC3Cu5O8rQ,11
|
30
|
+
gtk_stream-0.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|