Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/a/e/Aerospace-Simulations-HEAD/morse/src/morse/geolandloader/geoLandPlugin.py   Aerospace-Simulations(Download)
    #------------------------------ DTM Button
    if evt == 1: # DTM File Chooser
        fileDTM = Draw.PupStrInput("DTM File: ", "/home/rod/caylus-IGN-data/archive/MNT/EXTR_DEPT82.asc", 100);
        (dirname, fileDTMShort) = os.path.split(fileDTM);
        logging.info( "Chosen file:"+fileDTM)
        Blender.Window.Redraw() # This will redraw the 3d window.
    #------------------------------ Road Button
    if evt == 2: # Shapefile Road file chooser
        fileRoads = Draw.PupStrInput("Roads Shapefile: ", "/home/rod/caylus-IGN-data/archive/DONNEES/X291T092/BDTOPO_X291_SHP_L93/A_RESEAU_ROUTIER/ROUTE.SHP", 100); 
    if evt == 3: # Buildings Shapefile file chooser
        #fileBuildings = Draw.PupStrInput("Buildings Shapefile: ", "/data/caylus_SHP/BATI_REMARQUABLE.SHP", 100); 
        fileBuildings = Draw.PupStrInput("Buildings Shapefile: ", "/data/caylus_SHP/BATI_INDIFFERENCIE.SHP", 100); 
        (dirname, fileBuildingsShort) = os.path.split(fileBuildings);
        logging.info( "Chosen file:"+fileBuildings)
        Blender.Window.Redraw();
    #------------------------------ Vegetation Button
    if evt == 4: # Vegetation Shapefile file chooser
        fileVegetation = Draw.PupStrInput("Vegetation Shapefile: ", "/home/rod/caylus-IGN-data/archive/DONNEES/X291T092/BDTOPO_X291_SHP_L93/F_VEGETATION/ZONE_VEGETATION.SHP", 100);