From 8e0906691dbedc2ba7ad5782ea60a11f0539622d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 20 Jan 2010 12:56:32 +0100 Subject: [PATCH] Force group without string doesn't have any border --- tryton/gui/window/view_form/view/form_gtk/parser.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tryton/gui/window/view_form/view/form_gtk/parser.py b/tryton/gui/window/view_form/view/form_gtk/parser.py index 9e3d1e49b1..5fe3a65537 100644 --- a/tryton/gui/window/view_form/view/form_gtk/parser.py +++ b/tryton/gui/window/view_form/view/form_gtk/parser.py @@ -172,10 +172,13 @@ class Image(gtk.Image): class Frame(gtk.Frame): def __init__(self, label=None, attrs=None): + if not label: # label must be None to have no label widget + label = None super(Frame, self).__init__(label=label) self.attrs = attrs or {} if not label: self.set_shadow_type(gtk.SHADOW_NONE) + self.set_border_width(0) def state_set(self, model): if model: