Changeset 5188
- Timestamp:
- Apr 2, 2008, 11:35:48 AM (15 years ago)
- Location:
- anuga_core/source/anuga/pmesh
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/pmesh/graphical_mesh_generator.py
r5097 r5188 5 5 from tkSimpleDialog import Dialog 6 6 import mesh 7 from mesh import SEG_COLOUR 7 8 from Tkinter import FALSE,TRUE, Frame,X, LEFT,YES,BOTH,ALL,Widget,CURRENT, \ 8 9 Label,W, Entry, E, StringVar, END, Checkbutton, Radiobutton, IntVar, \ … … 20 21 VERT_SELECT_ADDING_SEG_COLOR = 'orange' 21 22 SELECT_COLOR = 'red' 22 SEG_COLOUR = 'blue'23 23 TRIANGLE_COLOUR = 'green' 24 24 APPLICATION_NAME = 'Pmesh' … … 229 229 230 230 def clearSelection(self,parent): 231 #FIXME looks like self.clearSelections - change name (Peter) 231 232 """ 232 233 """ -
anuga_core/source/anuga/pmesh/mesh.py
r4955 r5188 54 54 # FIXME: maybe make this a switch that the user can change? - DSG 55 55 initialconversions = ['', 'exterior', ''] 56 SEG_COLOUR = 'blue' 56 57 57 58 … … 157 158 # y+ 2*cornerOffset, 158 159 # 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)) 159 166 160 167 return canvas.create_rectangle(x-cornerOffset, … … 309 316 310 317 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): 312 320 x=[] 313 321 y=[] … … 1537 1545 """ 1538 1546 Precon: There must be 3 or more vertices in the userVertices structure 1547 1548 This returns alpha_segs_no_user_segs, segs2delete, optimum_alpha 1539 1549 """ 1540 1550 self._createBoundary(alpha=alpha)
Note: See TracChangeset
for help on using the changeset viewer.