mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-25 16:46:36 +00:00
MiRCART.py: import argv[1] into canvas if specified.
This commit is contained in:
parent
cf04a12690
commit
d1936486ff
@ -29,7 +29,13 @@ import sys, wx
|
|||||||
# Entry point
|
# Entry point
|
||||||
def main(*argv):
|
def main(*argv):
|
||||||
wxApp = wx.App(False)
|
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()
|
wxApp.MainLoop()
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main(*sys.argv)
|
main(*sys.argv)
|
||||||
|
Loading…
Reference in New Issue
Block a user