summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorbfox <bfox>2000-12-22 01:18:14 +0000
committerbfox <bfox>2000-12-22 01:18:14 +0000
commit8ea72aced5940a4607d17b9177f8d9b6039c934f (patch)
treec78922f31fda7f844f289f9c0f3482f14a13d599 /gui.py
parent57ba6ad27aaf5e492a3cf436ef14e51c36e57bdc (diff)
downloadanaconda-8ea72aced5940a4607d17b9177f8d9b6039c934f.tar.gz
anaconda-8ea72aced5940a4607d17b9177f8d9b6039c934f.tar.xz
anaconda-8ea72aced5940a4607d17b9177f8d9b6039c934f.zip
Fixed packing issues with release notes.
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py130
1 files changed, 121 insertions, 9 deletions
diff --git a/gui.py b/gui.py
index 055ae0c69..9acf7a9ee 100755
--- a/gui.py
+++ b/gui.py
@@ -489,11 +489,106 @@ class InstallControlWindow:
closeButton = GtkButton ("Close")
closeButton.connect ("clicked", self.textWin.hide)
+ buttonBox = GtkHButtonBox()
+ buttonBox.set_layout(BUTTONBOX_SPREAD)
+ buttonBox.pack_start(closeButton)
+
+
+ table = GtkTable(3, 3, FALSE)
+
+
+
+ try:
+ im = GdkImlib.Image ("pixmaps/border_top_left.png")
+ if im:
+ im.render ()
+ pix = im.make_pixmap ()
+ a = GtkAlignment ()
+ a.add (pix)
+ a.set (0, 0, 1.0, 1.0)
+ table.attach (a, 0, 1, 0, 1, SHRINK, FILL)
+
+ im = GdkImlib.Image ("pixmaps/border_top.png")
+ if im:
+ im.render ()
+ pix = im.make_pixmap ()
+ a = GtkAlignment ()
+ a.add (pix)
+ a.set (0, 0, 1.0, 1.0)
+ table.attach (a, 1, 2, 0, 1, SHRINK, FILL)
+
+ im = GdkImlib.Image ("pixmaps/border_top_right.png")
+ if im:
+ im.render ()
+ pix = im.make_pixmap ()
+ a = GtkAlignment ()
+ a.add (pix)
+ a.set (0, 0, 1.0, 1.0)
+ table.attach (a, 2, 3, 0, 1, SHRINK, FILL)
+
+ im = GdkImlib.Image ("pixmaps/border_left.png")
+ if im:
+ im.render ()
+ pix = im.make_pixmap ()
+ a = GtkAlignment ()
+ a.add (pix)
+ a.set (0, 0, 1.0, 1.0)
+ table.attach (a, 0, 1, 1, 2, SHRINK, FILL)
+
+ im = GdkImlib.Image ("pixmaps/border_right.png")
+ if im:
+ im.render ()
+ pix = im.make_pixmap ()
+ a = GtkAlignment ()
+ a.add (pix)
+ a.set (0, 0, 1.0, 1.0)
+ table.attach (a, 2, 3, 1, 2, SHRINK, FILL)
+
+ im = GdkImlib.Image ("pixmaps/border_bottom_left.png")
+ if im:
+ im.render ()
+ pix = im.make_pixmap ()
+ a = GtkAlignment ()
+ a.add (pix)
+ a.set (0, 0, 1.0, 1.0)
+ table.attach (a, 0, 1, 2, 3, SHRINK, FILL)
+
+ im = GdkImlib.Image ("pixmaps/border_bottom.png")
+ if im:
+ im.render ()
+ pix = im.make_pixmap ()
+ a = GtkAlignment ()
+ a.add (pix)
+ a.set (0, 0, 1.0, 1.0)
+ table.attach (a, 1, 2, 2, 3, SHRINK, FILL)
+
+ im = GdkImlib.Image ("pixmaps/border_bottom_right.png")
+ if im:
+ im.render ()
+ pix = im.make_pixmap ()
+ a = GtkAlignment ()
+ a.add (pix)
+ a.set (0, 0, 1.0, 1.0)
+ table.attach (a, 2, 3, 2, 3, SHRINK, FILL)
+
+
+ except:
+ print "Unable to load left_border.png"
+
+
+
+
+
+
vbox1 = GtkVBox ()
vbox1.set_border_width (10)
- frame = GtkFrame ("Release Notes")
+ frame = GtkFrame (_("Release Notes"))
frame.add(vbox1)
- self.textWin.add (frame)
+ frame.set_label_align (0.5, 0.5)
+ frame.set_shadow_type (SHADOW_NONE)
+
+# self.textWin.add (frame)
+ self.textWin.add (table)
self.textWin.set_position (WIN_POS_CENTER)
@@ -505,15 +600,32 @@ class InstallControlWindow:
sw = GtkScrolledWindow()
sw.set_policy(POLICY_NEVER, POLICY_ALWAYS)
sw.add(text)
-
- vbox1.pack_start(sw, TRUE, TRUE)
-
- self.textWin.set_default_size (520, 400)
- self.textWin.set_usize (520, 400)
- self.textWin.set_position (WIN_POS_CENTER)
+# frame.add(sw)
+ vbox1.pack_start(sw)
+# vbox1.pack_start(closeButton)
+
+ a = GtkAlignment ()
+ a.add (frame)
+ a.set (0, 0, 1.0, 1.0)
- vbox1.pack_start(closeButton, FALSE, FALSE)
+# vbox1.pack_start(sw, TRUE, TRUE)
+ self.textWin.set_default_size (560, 393)
+ self.textWin.set_usize (560, 393)
+ self.textWin.set_position (WIN_POS_CENTER)
+
+# closeButton.set_usize(40, 10)
+# vbox1.pack_start(closeButton, FALSE, TRUE)
+ vbox1.pack_start(buttonBox, FALSE, TRUE)
+
+
+ table.attach (a, 1, 2, 1, 2, FILL, FILL, 5, 5)
+
+
+
+
+
+
self.textWin.set_border_width(1)
self.textWin.show_all()