[Bug 67986] Simple Python Script application creates Tkinter project

Amilcar do Carmo Lucas amilcar at ida.ing.tu-bs.de
Thu Nov 13 15:16:02 UTC 2003


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
     
http://bugs.kde.org/show_bug.cgi?id=67986     
amilcar at ida.ing.tu-bs.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From amilcar at ida.ing.tu-bs.de  2003-11-13 15:15 -------
Subject: kdevelop/languages/python/app_templates

CVS commit by aclu: 

Fix Bug 67986: Simple Python Script application creates Tkinter project

Thanks to Eggert Ehmke for the patch.

CCMAIL: 67986-done at bugs.kde.org


  A            pytk/.cvsignore   1.1
  A            pytk/.kdev_ignore   1.1
  A            pytk/Makefile.am   1.1
  A            pytk/app.kdevelop   1.1
  A            pytk/app.py   1.1
  A            pytk/pytk   1.1
  A            pytk/pytk.png   1.1
  A            pytk/script   1.1
  M +1 -1      Makefile.am   1.2
  M +6 -4      pythonhello/app.py   1.2
  M +5 -3      pythonhello/pythonhello   1.3


--- kdevelop/languages/python/app_templates/Makefile.am  #1.1:1.2
@@ -1 +1 @@
-SUBDIRS = pythonhello pyqt
+SUBDIRS = pythonhello pytk pyqt

--- kdevelop/languages/python/app_templates/pythonhello/app.py  #1.1:1.2
@@ -1,4 +1,6 @@
-from Tkinter import *
-widget = Label(None, text='Hello world!')
-widget.pack()
-widget.mainloop()
+#!python
+
+def main():
+  print 'Hello world!'
+
+main()
\ No newline at end of file

--- kdevelop/languages/python/app_templates/pythonhello/pythonhello  #1.2:1.3
@@ -2,9 +2,11 @@
 [General]
 Name=Simple Python script
-Name[fr]=Un simple script de test « Hello world »
+Name[fr]=Un simple script de test "Hello world"
+Name[de]=Ein einfaches Python-Script "Hello world" 
 Icon=pythonhello.png
 Category=Python
-Comment=This generates a simplistic Hello world program in Python using Tkinter
-Comment[fr]=Génère un simple script de test du type « Hello world » dans le language PYTHON en utilisant « tkinter ».
+Comment=This generates a simplistic "Hello world" program in Python
+Comment[fr]=Génère un simple script de test du type "Hello world" dans le language PYTHON.
+Comment[de]=Es wird ein einfaches "Hello world"-Programm in Python erzeugt.
 FileTemplates=py,ShellStyle
 ShowFilesAfterGeneration=APPNAMELC.py




More information about the KDevelop-devel mailing list