Bug 67986

Summary: Simple Python Script application creates Tkinter project
Product: [Applications] kdevelop Reporter: Eggert Ehmke <eggert>
Component: generalAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: 3.0.0b1   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: pythontempl.tgz

Description Eggert Ehmke 2003-11-12 12:17:11 UTC
Version:           3.0.0b1 (using KDE 3.1.93 (3.2 beta 1), compiled sources)
Compiler:          gcc version 3.3.1 (SuSE Linux)
OS:          Linux (i686) release 2.6.0-test9-bk10

This is no script application, but a gui app. While this is fine, it should be possible create a *real* simple script app, as the name tells.
Comment 1 Amilcar do Carmo Lucas 2003-11-12 12:28:44 UTC
You could read:
http://developer.kde.org/documentation/library/cvs-api/kdevelop/html/howToAddApplicationTemplates.html

and submit a patch for a new, simpler template.
Comment 2 Eggert Ehmke 2003-11-12 13:43:34 UTC
Subject: Re:  Simple Python Script application creates Tkinter project

Hello Ailcar, 
 
I did what you suggested. 
 
Here is my contribution: two new templates, where  
 
1. the old pythonhello template is renamed to pytk (analog to pyqt). It 
creates the simple tkinter gui application. An new icon file is there too. 
 
2. the new pythonhello template contains a simple script "hello world". 
 
As I don't have cvs write access, I hope you can make the contribution, or 
tell me what is the way to get write access. 
 
Regards 
Eggert 
 
> You could read:  
>  http://developer.kde.org/documentation/library/cvs-api/kdevelop/html/> 
> howToAddApplicationTemplates.html  
  
>  and submit a patch for a new, simpler template. 
 
> ------- You are receiving this mail because: ------- 
> You reported the bug, or are watching the reporter. 
>       
> http://bugs.kde.org/show_bug.cgi?id=67986      
> a.lucas@tu-bs.de changed: 
>  
>            What    |Removed                     |Added 
> 
----------------------------------------------------------------------------

>            Severity|normal                      |wishlist 
>  
>  
>  
> ------- Additional Comments From a.lucas@tu-bs.de  2003-11-12 12:28 
> ------- 
> You could read: 
> http://developer.kde.org/documentation/library/cvs-api/kdevelop/html/
howToAddApplicationTemplates.html 
>  
> and submit a patch for a new, simpler template. 
>  



Created an attachment (id=3175)
pythontempl.tgz
Comment 3 Alexander Dymo 2003-11-12 21:29:57 UTC
This would mean introducing two files with translatable strings: pythonhello and pytk. But the change seems to be very important - leaving existing templates would confuse users. Amilcar, what do you think about asking a permission from i18n team?
Comment 4 Amilcar do Carmo Lucas 2003-11-13 15:15:07 UTC
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@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