Changeset 4830
- Timestamp:
- Nov 20, 2007, 9:27:34 AM (17 years ago)
- Location:
- anuga_core/source/anuga/pmesh
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/pmesh/graphical_mesh_generator.py
r4663 r4830 5 5 from tkSimpleDialog import Dialog 6 6 import mesh 7 from Tkinter import FALSE,TRUE, Frame,X, LEFT,YES,BOTH,ALL,Widget,CURRENT, Label,W, Entry, E, StringVar, END, Checkbutton, Radiobutton, IntVar, DISABLED, NORMAL 7 from Tkinter import FALSE,TRUE, Frame,X, LEFT,YES,BOTH,ALL,Widget,CURRENT, \ 8 Label,W, Entry, E, StringVar, END, Checkbutton, Radiobutton, IntVar, \ 9 DISABLED, NORMAL 8 10 #from cursornames import TLC,TRC, BLC, BRC, TS, RS, LS, BS 9 11 from tkMessageBox import showerror, _show, QUESTION,YESNOCANCEL … … 500 502 501 503 502 from anuga.coordinate_transforms.geo_reference import Geo_reference,DEFAULT_ZONE 504 from anuga.coordinate_transforms.geo_reference import Geo_reference, \ 505 DEFAULT_ZONE 503 506 offset_x = 30 504 507 offset_y = 40 … … 1156 1159 fileTypeDesc = "obj mesh" 1157 1160 1158 ofile = tkFileDialog.asksaveasfilename(filetypes=[(fileTypeDesc, fileType), 1159 ("All Files", "*")]) 1161 ofile = tkFileDialog.asksaveasfilename(filetypes=[(fileTypeDesc, 1162 fileType), 1163 ("All Files", "*")]) 1160 1164 if ofile: 1161 1165 addOn = "." + fileType … … 1176 1180 def ImportUngenerate(self): 1177 1181 ofile = tkFileDialog.askopenfilename(initialdir=self.currentPath, 1178 1182 filetypes=[ ("ungenerated polygon information", "txt"), 1179 1183 ("All Files", "*")]) 1180 1184 if ofile == "": … … 1247 1251 print "self.currentPath",self.currentPath 1248 1252 ofile = tkFileDialog.askopenfilename(initialdir=self.currentPath, 1249 filetypes=[ ("text Mesh", "*.tsh *.msh"), 1250 ("points", "*.csv *.txt *.pts"), 1251 ("All Files", "*")]) 1253 filetypes=[ ("text Mesh", 1254 "*.tsh *.msh"), 1255 ("points", 1256 "*.csv *.txt *.pts"), 1257 ("All Files", "*")]) 1252 1258 if ofile == "": 1253 1259 # The user cancelled the loading action -
anuga_core/source/anuga/pmesh/mesh.py
r4741 r4830 30 30 from anuga.coordinate_transforms.geo_reference import Geo_reference, \ 31 31 DEFAULT_ZONE 32 from anuga.utilities.polygon import point_in_polygon33 32 from anuga.load_mesh.loadASCII import NOMAXAREA, export_mesh_file, \ 34 33 import_mesh_file … … 807 806 808 807 """ 808 # Only import this if necessary. 809 # Trying to get pmesh working in an uncompiled environment 810 from anuga.utilities.polygon import point_in_polygon 811 809 812 #get absolute values 810 813 if geo_reference is not None:
Note: See TracChangeset
for help on using the changeset viewer.