/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to annotate/colormap.py

  • Committer: Curtis Hovey
  • Date: 2011-09-05 03:44:26 UTC
  • mto: This revision was merged to the branch mainline in revision 741.
  • Revision ID: sinzui.is@verizon.net-20110905034426-p98pxnay9rmzkr99
Fix the initializer for many classes.
Replace Gtk.Dialog.vbox with .get_content_area().

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
 
17
__metaclass__ = type
 
18
 
17
19
import sys
18
20
 
19
 
class AnnotateColorMap(object):
 
21
 
 
22
class AnnotateColorMap:
20
23
 
21
24
    really_old_color = "#0046FF"
22
25
 
62
65
 
63
66
        return color
64
67
 
 
68
 
65
69
class AnnotateColorSaturation(AnnotateColorMap):
66
70
    def __init__(self, span=340.):
67
 
        AnnotateColorMap.__init__(self, span)
 
71
        super(AnnotateColorSaturation, self).__init__(span)
68
72
        self.current_angle = 0
69
73
 
70
74
    def hue(self, angle):