Anonim / 1 year, 3 months ago | Download | Plaintext | Odpowiedz |

 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
#!/usr/bin/python3
import sys, getopt

from PyKDE4.kdeui import *
from PyKDE4.kdecore import ki18n, KAboutData, KCmdLineArgs
import PyKDE4
from PyQt4 import QtGui
#from bcolors import bcolors



				 
def main(argv):
	
	appName     = "KApplication"
	catalog     = ""
	programName = ki18n ("KApplication")
	version     = "1.0"
	description = ki18n ("KApplication/KMainWindow/KAboutData example")
	license     = KAboutData.License_GPL
	copyright   = ki18n ("(c) 2007 Jim Bublitz")
	text        = ki18n ("none")
	homePage    = "www.riverbankcomputing.com"
	bugEmail    = "jbublitz@nwinternet.com"

	aboutData   = KAboutData (appName, catalog, programName, version, description,
				license, copyright, text, homePage, bugEmail)

	KCmdLineArgs.init (sys.argv, aboutData)

	app = KApplication ()
	w = QtGui.QWidget()
	w.resize(250, 150)
	w.move(300, 300)
	w.setWindowTitle('Simple')
	w.show()
	sys.exit(app.exec_())
	
if __name__ == "__main__":
	main(sys.argv[1:])