Changeset 4830


Ignore:
Timestamp:
Nov 20, 2007, 9:27:34 AM (17 years ago)
Author:
duncan
Message:

style

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

Legend:

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

    r4663 r4830  
    55from   tkSimpleDialog import Dialog
    66import 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
     7from 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
    810#from cursornames import TLC,TRC, BLC, BRC, TS, RS, LS, BS
    911from tkMessageBox import showerror, _show, QUESTION,YESNOCANCEL
     
    500502       
    501503       
    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
    503506        offset_x = 30
    504507        offset_y = 40
     
    11561159        fileTypeDesc = "obj mesh"
    11571160       
    1158         ofile = tkFileDialog.asksaveasfilename(filetypes=[(fileTypeDesc, fileType),
    1159                                                 ("All Files", "*")])
     1161        ofile = tkFileDialog.asksaveasfilename(filetypes=[(fileTypeDesc,
     1162                                                           fileType),
     1163                                                          ("All Files", "*")])
    11601164        if ofile:
    11611165            addOn = "." + fileType
     
    11761180    def ImportUngenerate(self):
    11771181        ofile = tkFileDialog.askopenfilename(initialdir=self.currentPath,
    1178                                              filetypes=[ ("ungenerated polygon information", "txt"),
     1182                   filetypes=[ ("ungenerated polygon information", "txt"),
    11791183                                           ("All Files", "*")])
    11801184        if ofile == "":
     
    12471251        print "self.currentPath",self.currentPath
    12481252        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", "*")])
    12521258        if ofile == "":
    12531259            # The user cancelled the loading action
  • anuga_core/source/anuga/pmesh/mesh.py

    r4741 r4830  
    3030from anuga.coordinate_transforms.geo_reference import Geo_reference, \
    3131     DEFAULT_ZONE
    32 from anuga.utilities.polygon import point_in_polygon
    3332from  anuga.load_mesh.loadASCII import NOMAXAREA, export_mesh_file, \
    3433     import_mesh_file
     
    807806       
    808807        """
     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       
    809812        #get absolute values
    810813        if geo_reference is not None:
Note: See TracChangeset for help on using the changeset viewer.