Changeset 5188


Ignore:
Timestamp:
Apr 2, 2008, 11:35:48 AM (16 years ago)
Author:
duncan
Message:

abstracting colour information

Location:
anuga_core/source/anuga/pmesh
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/pmesh/graphical_mesh_generator.py

    r5097 r5188  
    55from   tkSimpleDialog import Dialog
    66import mesh
     7from mesh import SEG_COLOUR
    78from Tkinter import  FALSE,TRUE, Frame,X, LEFT,YES,BOTH,ALL,Widget,CURRENT, \
    89     Label,W, Entry, E, StringVar, END, Checkbutton, Radiobutton, IntVar, \
     
    2021VERT_SELECT_ADDING_SEG_COLOR = 'orange'
    2122SELECT_COLOR = 'red'
    22 SEG_COLOUR = 'blue'
    2323TRIANGLE_COLOUR = 'green'
    2424APPLICATION_NAME = 'Pmesh'
     
    229229
    230230    def clearSelection(self,parent):
     231    #FIXME looks like self.clearSelections - change name (Peter)
    231232        """
    232233        """
  • anuga_core/source/anuga/pmesh/mesh.py

    r4955 r5188  
    5454# FIXME: maybe make this a switch that the user can change? - DSG
    5555initialconversions = ['', 'exterior', '']
     56SEG_COLOUR = 'blue'
    5657
    5758
     
    157158        #                   y+ 2*cornerOffset,
    158159        #                        text=tags)
     160       
     161        # This gives points info.  It is a mess though, since numbers are
     162        # not deleted when zaooming in.
     163        #canvas.create_text(x+ 2*cornerOffset,
     164        #                   y+ 2*cornerOffset,
     165        #                        text=str(x)+','+str(y))
    159166       
    160167        return canvas.create_rectangle(x-cornerOffset,
     
    309316           
    310317       
    311     def draw(self, canvas, tags,scale=1, xoffset=0, yoffset=0,colour='blue'):
     318    def draw(self, canvas, tags,scale=1, xoffset=0,
     319             yoffset=0, colour=SEG_COLOUR):
    312320        x=[]
    313321        y=[]
     
    15371545        """
    15381546        Precon: There must be 3 or more vertices in the userVertices structure
     1547       
     1548        This returns alpha_segs_no_user_segs, segs2delete, optimum_alpha
    15391549        """
    15401550        self._createBoundary(alpha=alpha)
Note: See TracChangeset for help on using the changeset viewer.