Thread
:
PyGTKEditor
View Single Post
pipeline
2008-01-06 , 23:04
Posts: 693 | Thanked: 502 times | Joined on Jul 2007
#
33
Khertan, can you add something like this to the end of the __init__ function (line 433 for me) :
Code:
argcount=0 for arg in sys.argv: argcount = argcount + 1 if (argcount > 1): self.open_file(arg)
(Edit : thanks cripes)
That would allow me to launch pygtkeditor with filename on command line and open it automatically.
Last edited by pipeline; 2008-01-06 at
23:40
.
Quote & Reply
|
The Following User Says Thank You to pipeline For This Useful Post:
Khertan
pipeline
View Public Profile
Send a private message to pipeline
Find all posts by pipeline