summaryrefslogtreecommitdiffstats
path: root/app_templates/kdeutility/src/kdeutility.py
blob: 73a6833fd51142f7ba5b05c0ad3fb78319757aef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/python
###########################################################################
# kdeutility - description                                                #
# ------------------------------                                          #
# begin     : Mon May 2 2005                                              #
# copyright : (C) 2005 by AUTHOR                                          #
# email     : your@email.com                                              #
#                                                                         #
###########################################################################
#                                                                         #
#   This program is free software; you can redistribute it and/or modify  #
#   it under the terms of the GNU General Public License as published by  #
#   the Free Software Foundation; either version 2 of the License, or     #
#   (at your option) any later version.                                   #
#                                                                         #
###########################################################################

import sys
from qt import *
from tdecore import *
from tdeui import *
import kdedesigner
from KDEUtilityDialogUI import *

description = "A KDE Utility"
version = "0.1";

class KDEUtilityDialog(KDEUtilityDialogUI):
    def __init__(self):
        KDEUtilityDialogUI.__init__(self,None,"TestApp")
    # Add other methods, slots and signals here.


options = [] # No command line options.

def main():
    global kapp,version,description,options

    aboutdata = TDEAboutData("kdeutility", "KdeUtility", version, description, \
        TDEAboutData.License_GPL, "(C) 2005 AUTHOR", None, None, "your@email.com")
    aboutdata.addAuthor("AUTHOR", None, "your@email.com")
    TDECmdLineArgs.init(sys.argv,aboutdata)
    #TDECmdLineArgs.addCmdLineOptions(options)
    kapp = TDEApplication()
    
    dialog = KDEUtilityDialog()
    kapp.setMainWidget(dialog)
    dialog.show()

    return kapp.exec_loop()
main()