Thread: PyGTKEditor
View Single Post
pipeline's Avatar
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.
 

The Following User Says Thank You to pipeline For This Useful Post: