[Skencil-commits] r766 - skencil/branches/skencil-0.6/src/Sketch/UI

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Sat Oct 30 17:39:09 CEST 2010


Author: igor_n
Date: 2010-10-30 17:39:09 +0200 (Sat, 30 Oct 2010)
New Revision: 766

Modified:
   skencil/branches/skencil-0.6/src/Sketch/UI/ruler.py
Log:
copyrights update

Modified: skencil/branches/skencil-0.6/src/Sketch/UI/ruler.py
===================================================================
--- skencil/branches/skencil-0.6/src/Sketch/UI/ruler.py	2010-10-29 15:19:36 UTC (rev 765)
+++ skencil/branches/skencil-0.6/src/Sketch/UI/ruler.py	2010-10-30 15:39:09 UTC (rev 766)
@@ -1,5 +1,6 @@
 # Sketch - A Python-based interactive drawing program
 # Copyright (C) 1997, 1998, 1999, 2001, 2003 by Bernhard Herzog
+# Copyright (c) 2010 by Igor E.Novikov
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Library General Public
@@ -122,19 +123,6 @@
             self.gc.init_gc(self.tkwin)
             self.gc_initialized = 1
 
-    def init_gcs(self):
-        cmap = self.tkwin.colormap()
-        foreground = cmap.AllocColor(0, 0, 0)[0]
-        attrs = {'foreground': foreground, 'line_width':0}
-        if not self.rotated_font:
-            if self.font:
-                attrs['font'] = self.font
-        else:
-            attrs['font'] = self.rotated_font
-        self.gc = self.tkwin.GetGC(attrs)
-        if self.font is None:
-            self.font = self.gc.font
-
     def ResizedMethod(self, width, height):
         self.SetRange(self.start, self.pixel_per_pt, force = 1)
 



More information about the Skencil-commits mailing list