def do_command_line(self, cl):
Gtk.Application.do_command_line(self, cl)
if len(cl.get_arguments()) > 1:
filename = " ".join(cl.get_arguments()[1:]) # 'cos fuck Gtk...
from scc.gui.importexport.dialog import Dialog
if Dialog.determine_type(filename) is not None:
ied = Dialog(self)
def i_told_you_to_quit(*a):
sys.exit(0)
ied.window.connect('destroy', i_told_you_to_quit)
ied.show(self.window)
# Skip first screen and try to import this file
ied.import_file(filename)
else:
sys.exit(1)
else:
self.activate()
return 0
评论列表
文章目录