summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbfox <bfox>2000-11-01 18:16:11 +0000
committerbfox <bfox>2000-11-01 18:16:11 +0000
commit0229f8630dad7a0739eacf44c2b1d9954e474f82 (patch)
treeaa26f73edf4b7a91dcd2017c2b91c5b13d1e3c8a
parentaf85963ea2b56662cba9f9f9056c50a5f0f8725b (diff)
downloadanaconda-0229f8630dad7a0739eacf44c2b1d9954e474f82.tar.gz
anaconda-0229f8630dad7a0739eacf44c2b1d9954e474f82.tar.xz
anaconda-0229f8630dad7a0739eacf44c2b1d9954e474f82.zip
Checkboxes now use checkmarks instead of "X"s. Looks better.
-rw-r--r--iw/checklist.py17
1 files changed, 15 insertions, 2 deletions
diff --git a/iw/checklist.py b/iw/checklist.py
index 8a05b9b2e..90909659f 100644
--- a/iw/checklist.py
+++ b/iw/checklist.py
@@ -74,12 +74,25 @@ class CheckList (GtkCList):
draw_rectangle(self.on_pixmap,base_gc,1,0,0,CheckList.CHECK_SIZE,CheckList.CHECK_SIZE)
draw_rectangle(self.on_pixmap,text_gc,0,0,0,CheckList.CHECK_SIZE-1,CheckList.CHECK_SIZE-1)
- draw_line(self.on_pixmap,text_gc,0,0,CheckList.CHECK_SIZE-1,CheckList.CHECK_SIZE-1)
- draw_line(self.on_pixmap,text_gc,0,CheckList.CHECK_SIZE-1,CheckList.CHECK_SIZE-1,0)
+
+ draw_line(self.on_pixmap,text_gc,2, CheckList.CHECK_SIZE/2,CheckList.CHECK_SIZE/3,CheckList.CHECK_SIZE-5)
+ draw_line(self.on_pixmap,text_gc,2, CheckList.CHECK_SIZE/2+1,CheckList.CHECK_SIZE/3,CheckList.CHECK_SIZE-4)
+ draw_line(self.on_pixmap,text_gc,CheckList.CHECK_SIZE/3, CheckList.CHECK_SIZE-5, CheckList.CHECK_SIZE-3, 3)
+ draw_line(self.on_pixmap,text_gc,CheckList.CHECK_SIZE/3, CheckList.CHECK_SIZE-4, CheckList.CHECK_SIZE-3, 2)
+
draw_rectangle(self.off_pixmap,base_gc,1,0,0,CheckList.CHECK_SIZE,CheckList.CHECK_SIZE)
draw_rectangle(self.off_pixmap,text_gc,0,0,0,CheckList.CHECK_SIZE-1,CheckList.CHECK_SIZE-1)
+
+
+
+
+
+
+
+
+
def _realize_cb (self, clist):
self.on_pixmap = create_pixmap(self.get_window(), CheckList.CHECK_SIZE,CheckList.CHECK_SIZE)
self.off_pixmap = create_pixmap(self.get_window(), CheckList.CHECK_SIZE,CheckList.CHECK_SIZE)