Changeset 4805 for trunk/G2compare.py


Ignore:
Timestamp:
Feb 8, 2021 2:37:16 PM (2 years ago)
Author:
toby
Message:

start replacing dataWindow.GetSizer? with .SetSizer? since Sizer could be horizontal or vertical

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/G2compare.py

    r4801 r4805  
    888888    Frame = main(application) # start the GUI
    889889    loadall = False
     890    loadbak = False
    890891    argLoadlist = sys.argv[1:]
    891892    for arg in argLoadlist:
     893        if '-d' in arg:
     894            loadall = True
     895            break
     896        elif '-b' in arg:
     897            loadbak = True
     898            continue
     899        elif '.bak' in os.path.splitext(arg)[0] and not loadbak:
     900            continue
    892901        fil = os.path.splitext(arg)[0] + '.gpx'
    893902        if os.path.exists(fil):
     903            if [fil,'GPX'] in Frame.fileList:
     904                print('Skipping over {}: previously read'.format(fil))
     905                continue
    894906            Frame.fileList.append([fil,'GPX'])
    895907            Frame.loadFile(fil)
    896         elif '-d' in arg:
    897             loadall = True
     908            continue
    898909        else:
    899910            print('File {} not found. Skipping'.format(fil))
Note: See TracChangeset for help on using the changeset viewer.