diff options
author | Gary Martin <gary@garycmartin.com> | 2012-10-07 17:26:10 (GMT) |
---|---|---|
committer | Gary Martin <gary@garycmartin.com> | 2012-10-07 17:26:10 (GMT) |
commit | 101c4870af925bf2d47142558360defcb1c4cb3b (patch) | |
tree | 5cc059e5f5f25411f5a1afde58643716b1dacf75 /layout.py | |
parent | 01e75394880f91c76697e24cd5680e82ae0c2bcd (diff) |
Pack the label and input entry so that the input entry expands to take up remaining space left over from label.
Diffstat (limited to 'layout.py')
-rw-r--r-- | layout.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -171,10 +171,10 @@ class CalcLayout: label1 = gtk.Label(_('Label:')) label1.modify_fg(gtk.STATE_NORMAL, self.col_white) label1.set_alignment(1, 0.5) - hc1.add(label1) + hc1.pack_start(label1, expand=False, fill=False, padding=0) self.label_entry = gtk.Entry() self.label_entry.modify_bg(gtk.STATE_INSENSITIVE, self.col_black) - hc1.add(self.label_entry) + hc1.pack_start(self.label_entry, expand=True, fill=True, padding=0) self.grid.attach(eb2, 0, 6, 0, 2) self.text_entry = gtk.Entry() |