2
# -*- coding: utf-8 -*-
4
# Copyright (c) 2006 - 2007 Detlev Offenbach <detlev@die-offenbachs.de>
10
This is the main Python script that performs the neccessary initialization
11
of the Diff module and starts the Qt event loop. This is a standalone
12
version of the integrated Diff module.
17
if "--nokde" in sys.argv:
18
del sys.argv[sys.argv.index("--nokde")]
19
os.environ["e4nokde"] = "1"
21
from Utilities import Startup
24
def createMainWidget(argv, qtDir):
26
Function to create the main widget.
28
@param argv list of commandline parameters (list of strings)
29
@param qtDir directory of the Qt installation (string)
30
@return reference to the main widget (QWidget)
32
from UI.DiffDialog import DiffDialog
37
Main entry point into the application.
40
("--nokde" , "don't use KDE widgets"),
42
appinfo = Startup.makeAppInfo(sys.argv,
45
"Simple graphical diff tool",
47
res = Startup.simpleAppStartup(sys.argv,
52
if __name__ == '__main__':