[X2Go-Commits] [pyhoca-gui] 03/03: pyhoca/wxgui/profilemanager.py: Assure that SetColumnWidth paramters are all int (not float).

git-admin at x2go.org git-admin at x2go.org
Tue Aug 8 16:31:00 CEST 2023


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository pyhoca-gui.

commit ffb0af2eecdeced01239f9e24242b6ba9132663c
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Tue Aug 8 16:30:52 2023 +0200

    pyhoca/wxgui/profilemanager.py: Assure that SetColumnWidth paramters are all int (not float).
---
 pyhoca/wxgui/profilemanager.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyhoca/wxgui/profilemanager.py b/pyhoca/wxgui/profilemanager.py
index 5870458..9c1d240 100644
--- a/pyhoca/wxgui/profilemanager.py
+++ b/pyhoca/wxgui/profilemanager.py
@@ -907,8 +907,8 @@ class PyHocaGUI_ProfileManager(wx.Dialog):
 
         # derive ListCtrl widths from sizer information
         _sizer_width = sizer_7_1_1_3.GetSize().GetWidth()
-        self.SharedFoldersList.SetColumnWidth(0, abs(_sizer_width*.7))
-        self.SharedFoldersList.SetColumnWidth(1, abs(_sizer_width*.3))
+        self.SharedFoldersList.SetColumnWidth(0, int(abs(_sizer_width*.7)))
+        self.SharedFoldersList.SetColumnWidth(1, int(abs(_sizer_width*.3)))
 
     def __update_fields(self):
         """\

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/pyhoca-gui.git


More information about the x2go-commits mailing list