Hi all! Three small patches for: setup.py: Add dependency for python-yaml required by gtklient.py (or at least imported) hlibrary.py: I moved curl.close() down to avoid the debug routine to fail gtkclient.py: switch from self.window.set_size_request to self.window.set_default_size to not break tiling window managers
Only tested with parabola on X11.
>From c9b4cbec348d5cb638b84a6827698e914c699c30 Mon Sep 17 00:00:00 2001 From: koffeinfriedhof <parab...@koffeinfriedhof.de> Date: Thu, 25 May 2023 20:05:51 +0200 Subject: [PATCH 1/3] add pyyaml to install_requires as gtkclient.py imports yaml --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 5784752..a3c8043 100644 --- a/setup.py +++ b/setup.py @@ -45,6 +45,7 @@ setup( ( "pygobject" , "pycurl" , + "pyyaml", ) , entry_points = { -- 2.40.1
>From 4f4231a8466a456e2aea8458e978c62e85b67a76 Mon Sep 17 00:00:00 2001 From: koffeinfriedhof <parab...@koffeinfriedhof.de> Date: Thu, 25 May 2023 20:10:29 +0200 Subject: [PATCH 2/3] moved curl.close() to not break the debugging entries --- hclient/hlibrary.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hclient/hlibrary.py b/hclient/hlibrary.py index ce77036..cf17c42 100644 --- a/hclient/hlibrary.py +++ b/hclient/hlibrary.py @@ -134,7 +134,6 @@ class HTTPClient(object): except: result = False - curl.close() contents = self._contents.getvalue().decode('utf-8') self._contents = io.BytesIO() @@ -158,6 +157,8 @@ class HTTPClient(object): #DBG("hlibrary.py::perform() request_path=%s result=%s" % (request_path , result)) # DEBUG END + # moved curl.close() to not break debugging entries + curl.close() return (result, contents) -- 2.40.1
>From 249c6e42f2fc3eee6978441ce36d58802d896b91 Mon Sep 17 00:00:00 2001 From: koffeinfriedhof <parab...@koffeinfriedhof.de> Date: Thu, 25 May 2023 20:13:16 +0200 Subject: [PATCH 3/3] replace set_size_request with set_default_size to not break tiling window managers --- hclient/gtkclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hclient/gtkclient.py b/hclient/gtkclient.py index 493b78f..d2f2363 100644 --- a/hclient/gtkclient.py +++ b/hclient/gtkclient.py @@ -993,7 +993,7 @@ class hclient(object): self.window.set_title("h-client") self.window.set_icon_from_file(get_img_path('icon.png')) - self.window.set_size_request(1000, 800) + self.window.set_default_size(1000, 800) self.window.set_position(Gtk.WindowPosition.CENTER) self.window.connect('delete_event' , self.delete_event) -- 2.40.1
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Dev mailing list Dev@lists.parabola.nu https://lists.parabola.nu/mailman/listinfo/dev