Fixed some spacing issues on Data Entry gramplet
svn: r11507
This commit is contained in:
parent
0d9249b00c
commit
2fd67ea581
@ -1203,6 +1203,7 @@ class QuickViewGramplet(Gramplet):
|
|||||||
|
|
||||||
class DataEntryGramplet(Gramplet):
|
class DataEntryGramplet(Gramplet):
|
||||||
def init(self):
|
def init(self):
|
||||||
|
self.de_column_width = 20
|
||||||
import gtk
|
import gtk
|
||||||
rows = gtk.VBox()
|
rows = gtk.VBox()
|
||||||
self.dirty = False
|
self.dirty = False
|
||||||
@ -1324,7 +1325,7 @@ class DataEntryGramplet(Gramplet):
|
|||||||
label = gtk.Label()
|
label = gtk.Label()
|
||||||
if readonly:
|
if readonly:
|
||||||
label.set_text("<b>%s</b>" % text)
|
label.set_text("<b>%s</b>" % text)
|
||||||
label.set_width_chars(15)
|
label.set_width_chars(self.de_column_width)
|
||||||
label.set_use_markup(True)
|
label.set_use_markup(True)
|
||||||
self.de_widgets[text] = gtk.Label()
|
self.de_widgets[text] = gtk.Label()
|
||||||
self.de_widgets[text].set_alignment(0.0, 0.5)
|
self.de_widgets[text].set_alignment(0.0, 0.5)
|
||||||
@ -1334,7 +1335,7 @@ class DataEntryGramplet(Gramplet):
|
|||||||
row.pack_start(self.de_widgets[text], False)
|
row.pack_start(self.de_widgets[text], False)
|
||||||
else:
|
else:
|
||||||
label.set_text("%s: " % text)
|
label.set_text("%s: " % text)
|
||||||
label.set_width_chars(15)
|
label.set_width_chars(self.de_column_width)
|
||||||
label.set_alignment(1.0, 0.5)
|
label.set_alignment(1.0, 0.5)
|
||||||
if choices == None:
|
if choices == None:
|
||||||
self.de_widgets[text] = gtk.Entry()
|
self.de_widgets[text] = gtk.Entry()
|
||||||
@ -1559,7 +1560,7 @@ register(type="gramplet",
|
|||||||
expand=False,
|
expand=False,
|
||||||
content = DataEntryGramplet,
|
content = DataEntryGramplet,
|
||||||
title=_("Data Entry"),
|
title=_("Data Entry"),
|
||||||
detached_width = 600,
|
detached_width = 370,
|
||||||
detached_height = 450,
|
detached_height = 425,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user