Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGary Martin <gary@garycmartin.com>2012-10-07 17:26:10 (GMT)
committer Gary Martin <gary@garycmartin.com>2012-10-07 17:26:10 (GMT)
commit101c4870af925bf2d47142558360defcb1c4cb3b (patch)
tree5cc059e5f5f25411f5a1afde58643716b1dacf75
parent01e75394880f91c76697e24cd5680e82ae0c2bcd (diff)
Pack the label and input entry so that the input entry expands to take up remaining space left over from label.
-rw-r--r--layout.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/layout.py b/layout.py
index 0c5282e..cdbbb64 100644
--- a/layout.py
+++ b/layout.py
@@ -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()