mirror of
https://github.com/lalbornoz/roar.git
synced 2024-12-27 06:36:38 +00:00
MiRCART.py: import argv[1] into canvas if specified.
This commit is contained in:
parent
b0794ccaf9
commit
77eb660f35
@ -29,7 +29,13 @@ import sys, wx
|
||||
# Entry point
|
||||
def main(*argv):
|
||||
wxApp = wx.App(False)
|
||||
MiRCARTFrame(None)
|
||||
appFrame = MiRCARTFrame(None)
|
||||
if len(argv) > 1 \
|
||||
and len(argv[1]) > 0:
|
||||
appFrame.panelCanvas.canvasInterface.canvasPathName = argv[1]
|
||||
appFrame.panelCanvas.canvasImportStore.importTextFile(argv[1])
|
||||
appFrame.panelCanvas.canvasImportStore.importIntoPanel()
|
||||
appFrame.onCanvasUpdate(pathName=argv[1], undoLevel=-1)
|
||||
wxApp.MainLoop()
|
||||
if __name__ == "__main__":
|
||||
main(*sys.argv)
|
||||
|
Loading…
Reference in New Issue
Block a user