From 61b4691d238d81bda9f9f693d01bf24aa2cf4bec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Wed, 2 Mar 2011 13:03:25 +0100 Subject: [PATCH] Always define wid_size widget for binary --- tryton/gui/window/view_form/view/form_gtk/binary.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tryton/gui/window/view_form/view/form_gtk/binary.py b/tryton/gui/window/view_form/view/form_gtk/binary.py index db9ca59a5f..80c6c78e0b 100644 --- a/tryton/gui/window/view_form/view/form_gtk/binary.py +++ b/tryton/gui/window/view_form/view/form_gtk/binary.py @@ -29,15 +29,15 @@ class Binary(WidgetInterface): self.tooltips = Tooltips() self.widget = gtk.HBox(spacing=0) + self.wid_size = gtk.Entry() + self.wid_size.set_width_chars(11) + self.wid_size.props.sensitive = False if self.filename and self.filename_visible: self.wid_text = gtk.Entry() self.wid_text.set_property('activates_default', True) self.wid_text.connect('focus-in-event', lambda x, y: self._focus_in()) self.wid_text.connect('focus-out-event', lambda x, y: self._focus_out()) self.wid_text.connect_after('key_press_event', self.sig_key_press) - self.wid_size = gtk.Entry() - self.wid_size.set_width_chars(11) - self.wid_size.props.sensitive = False self.widget.pack_start(self.wid_text, expand=True, fill=True) else: self.wid_text = None