freelanceprogrammers.org Forum Index » Delphi

Re: P4D Update


View user's profile Post To page top
mnkey007 Posted: Sun Apr 24, 2005 11:27 pm


Joined: 24 Apr 2005

Posts: 12
Re: P4D Update
PyScripter is excellent. Is absolutely has the potential to become the most popular Python IDE for Windows. It should have its own SourceForge website and be announced in the Python newsgroup.

----- Original Message -----
From: Morgan Martinet
To: pythonfordelphi@yahoogroups.com
Sent: Sunday, April 24, 2005 5:54 PM
Subject: [pythonfordelphi] P4D Update


Hi everybody,
 
A new release 3.28 of P4D is available at http://mmm-experts.com/Downloads.aspx?ProductId=3
Some bug fixes but 2 major enhancements:
-        Kiriakos Vlahos generously donated his work to the P4D community: a complete and elegant Python IDE written in Delphi, only with opensource components. This is a really good alternative to the already excellent Pythonwin.
-        A small change in the VarPyth unit now allows you to invoke Python functions with named parameters.
 
Here’s the change log for this release:

Fixed a bug in PyObjectAsVariant thanks to Kiriakos Vlahos [kvlahos@...]Testing for Boolean values should be done before Integer values, as Boolean inherit from Integers. 
Fixed a bug in ArrayToPyTuple, ArrayToPyList and ArrayToPyDict when giving empty string as argument thanks to Dietmar Budelsky. Added demo29 showing how to exchange images between Delphi and Python Imaging Library (PIL). 
In PythonEngine.pas, added APIs:

PyObject_Call
PyErr_SetInterrupt
 

Added new feature to VarPyth: you can now invoke functions or methods using named parameters.A big advantage of named parameters over regular parameters is that the order of parameters is not importantand help invoking functions with many optional parameters, as you can only specify the one you need.Note that any Python function can be invoked with or without named parameters, and that you can mix regular and named parameters.Python code: ·                        def MakeList(a, b, c):·                          return [a, b, c]
Delphi code:  var           _main : Variant;    L : Variant;  begin    _main := MainModule;    L := _main.MakeList(1, 2, 3); // L = [1, 2, 3] (this is the old way)    L := _main.MakeList(1, c := 3, b := 2); // L = [1, 2, 3] Note that you can mix                                             // regular and named parameters.    L := _main.MakeList(c := 3, a := 1, b := 2); // L = [1, 2, 3] Only named parameters
 

Added Demo30 to show how you can use named parameters. 
Added Project PythonIDE thanks to a donation of Kiriakos Vlahos [kvlahos@...].PyScripter was not designed to compete with other Python IDE tools but rather to serve the purpose of providing a strong scriptingsolution for Delphi Applications. However it is a reasonably good stand-alone Python IDE.Features:
Easy Integration with Delphi applications
Syntax Highlighting
Brace Highlighting
Python source code utilities ((un)tabify, (un)comment, (un)indent)
Code Explorer
File Explorer with filter
Easy configuration and browsing of the Python Path
Access to Python manuals through the Help menu and context sensitive help (press F1 on a Python keyword inside the editor)
Integrated Python Interpreter
Command History
Alt-UP : previous command
Alt-Down : next command
Esc : clear command
Code Completion
Call Tips
Integrated Python Debugging
Debug Windows
Call Stack
Variables Window
Watches Window
BreakPoints Window
Modern UI with docked forms
Persistent configurable IDE options 
Note that P4D only contains PythonIDE source code, but you can download a compiled version fromhttp://mmm-experts.com/Downloads.aspx?ProductId=4 If you want to rebuild it by yourself, you`ll need to look at PythonIDEReadme.txt for the requiredcomponent packages. 

Flagged GetAtom of PythonAtom.pas and TAtomPythonEngine of AtomPythonEngine.pas as deprecated when using Delphi 6 or later.You should replace TAtomPythonEngine by TPythonEngine and PythonAtom.pas by VarPyth.pas.Note that VarPyth and PythonAtom act differently. So, simply changing the unit may compile but your application may crash at runtime because PythonAtom converts Python sequences into variant arrays for instance, whereas VarPyth will keep the Python sequence object and let you act on it.See discussions in the yahoo group and Andy`s tutorial about latest techniques:http://www.atug.com/andypatterns/PythonDelphiLatest.htmConverting TAtomPythonEngine is easy: open the form or datamodule hosting the component, View as text (Alt + F12), replace TAtomPythonEngine by TPythonEngine, View as Form (Alt + F12), in the unit, replace TAtomPythonEngine by TPythonEngine nad replace AtomPythonEngine by PythonEngine (in the uses).Save.Note that eventhough you get a deprecated warning, it still works as it is and you`re not required to do the change.It`s only better to do it for the future and for the additional benefits of VarPyth... Updated file `Deploying P4D.pdf` to refer to the Python tool that helps collect all module dependencies.
 To Post a message, send it to:   pythonfordelphi@eGroups.comTo Unsubscribe, send a blank message to: pythonfordelphi-unsubscribe@eGroups.com
Reply with quote
Send private message
View user's profile Post To page top
kiriakosvlahos Posted: Mon Apr 25, 2005 1:00 am


Joined: 25 Apr 2005

Posts: 8
Re: P4D Update
It is always good to hear nice comments about one`s work. However,
when you look at Python IDEs like

• Boa constructor (http://boa-constructor.sourceforge.net/)
• SPE (http://spe.pycs.net/)
• PyDev Eclipse plugin (http://pydev.sourceforge.net/)

you `ll see that they are a lot more feature rich than PyScripter.
Also the majority of Python developers uses Linux as a developing
platform and a Windows only IDE would have rather limited appeal.

On the other hand PyScripter, being a native Windows application, is
much snappier, more Windows compliant and potentially more robust than
some of the other IDEs. What it would need though before releasing it
to the wider Python community is a Python plugin architecture, which
would allow Python programmers to extend its functionality using their
native language. I`ll probably do that sometime soon. It would then
be easy to integrate standard Python tools such as pylint, pydoc,
Bicycle Repair Man etc. Also ESS-Model
(http://essmodel.sourceforge.net/) could be adapted to provide
integrated UML diagrams.


--- In pythonfordelphi@yahoogroups.com, "Andreas Schmid" <monkey@g...>
wrote:
> PyScripter is excellent. Is absolutely has the potential to become
the most popular Python IDE for Windows. It should have its own
SourceForge website and be announced in the Python newsgroup.
Reply with quote
Send private message
View user's profile Post To page top
mnkey007 Posted: Fri Apr 29, 2005 10:35 pm


Joined: 24 Apr 2005

Posts: 12
Re: P4D Update
If you don`t have access to
 
http://membres.lycos.fr/marat/delphi/python.htm
 
anymore, which is still the #1 search result if you google for "Python for Delphi", why not contact Lycos and ask them to remove it?
 
I remember I had great difficulties finding the more recent version and the new mailing list!
 
-Andreas
 

----- Original Message -----
From: Morgan Martinet
To: pythonfordelphi@yahoogroups.com
Sent: Sunday, April 24, 2005 5:54 PM
Subject: [pythonfordelphi] P4D Update


Hi everybody,
 
A new release 3.28 of P4D is available at http://mmm-experts.com/Downloads.aspx?ProductId=3
Some bug fixes but 2 major enhancements:
-        Kiriakos Vlahos generously donated his work to the P4D community: a complete and elegant Python IDE written in Delphi, only with opensource components. This is a really good alternative to the already excellent Pythonwin.
-        A small change in the VarPyth unit now allows you to invoke Python functions with named parameters.
 
Here’s the change log for this release:

Fixed a bug in PyObjectAsVariant thanks to Kiriakos Vlahos [kvlahos@...]Testing for Boolean values should be done before Integer values, as Boolean inherit from Integers. 
Fixed a bug in ArrayToPyTuple, ArrayToPyList and ArrayToPyDict when giving empty string as argument thanks to Dietmar Budelsky. Added demo29 showing how to exchange images between Delphi and Python Imaging Library (PIL). 
In PythonEngine.pas, added APIs:

PyObject_Call
PyErr_SetInterrupt
 

Added new feature to VarPyth: you can now invoke functions or methods using named parameters.A big advantage of named parameters over regular parameters is that the order of parameters is not importantand help invoking functions with many optional parameters, as you can only specify the one you need.Note that any Python function can be invoked with or without named parameters, and that you can mix regular and named parameters.Python code: ·                        def MakeList(a, b, c):·                          return [a, b, c]
Delphi code:  var           _main : Variant;    L : Variant;  begin    _main := MainModule;    L := _main.MakeList(1, 2, 3); // L = [1, 2, 3] (this is the old way)    L := _main.MakeList(1, c := 3, b := 2); // L = [1, 2, 3] Note that you can mix                                             // regular and named parameters.    L := _main.MakeList(c := 3, a := 1, b := 2); // L = [1, 2, 3] Only named parameters
 

Added Demo30 to show how you can use named parameters. 
Added Project PythonIDE thanks to a donation of Kiriakos Vlahos [kvlahos@...].PyScripter was not designed to compete with other Python IDE tools but rather to serve the purpose of providing a strong scriptingsolution for Delphi Applications. However it is a reasonably good stand-alone Python IDE.Features:
Easy Integration with Delphi applications
Syntax Highlighting
Brace Highlighting
Python source code utilities ((un)tabify, (un)comment, (un)indent)
Code Explorer
File Explorer with filter
Easy configuration and browsing of the Python Path
Access to Python manuals through the Help menu and context sensitive help (press F1 on a Python keyword inside the editor)
Integrated Python Interpreter
Command History
Alt-UP : previous command
Alt-Down : next command
Esc : clear command
Code Completion
Call Tips
Integrated Python Debugging
Debug Windows
Call Stack
Variables Window
Watches Window
BreakPoints Window
Modern UI with docked forms
Persistent configurable IDE options 
Note that P4D only contains PythonIDE source code, but you can download a compiled version fromhttp://mmm-experts.com/Downloads.aspx?ProductId=4 If you want to rebuild it by yourself, you`ll need to look at PythonIDEReadme.txt for the requiredcomponent packages. 

Flagged GetAtom of PythonAtom.pas and TAtomPythonEngine of AtomPythonEngine.pas as deprecated when using Delphi 6 or later.You should replace TAtomPythonEngine by TPythonEngine and PythonAtom.pas by VarPyth.pas.Note that VarPyth and PythonAtom act differently. So, simply changing the unit may compile but your application may crash at runtime because PythonAtom converts Python sequences into variant arrays for instance, whereas VarPyth will keep the Python sequence object and let you act on it.See discussions in the yahoo group and Andy`s tutorial about latest techniques:http://www.atug.com/andypatterns/PythonDelphiLatest.htmConverting TAtomPythonEngine is easy: open the form or datamodule hosting the component, View as text (Alt + F12), replace TAtomPythonEngine by TPythonEngine, View as Form (Alt + F12), in the unit, replace TAtomPythonEngine by TPythonEngine nad replace AtomPythonEngine by PythonEngine (in the uses).Save.Note that eventhough you get a deprecated warning, it still works as it is and you`re not required to do the change.It`s only better to do it for the future and for the additional benefits of VarPyth... Updated file `Deploying P4D.pdf` to refer to the Python tool that helps collect all module dependencies.
 To Post a message, send it to:   pythonfordelphi@eGroups.comTo Unsubscribe, send a blank message to: pythonfordelphi-unsubscribe@eGroups.com
Reply with quote
Send private message
View user's profile Post To page top
morgan_martinet Posted: Fri Apr 29, 2005 11:06 pm


Joined: 29 Apr 2005

Posts: 103
Re: P4D Update
Hi Andreas,
 
I already asked them but didn’t get
any answer! It appears to be very difficult to join them!!! L
I recently registered P4D to Torry’s
Delphi Pages, so it may help finding P4D in the future…
I will try to register it to CodeCentral
too…
 



From: pythonfordelphi@yahoogroups.com [mailto:pythonfordelphi@yahoogroups.com] On Behalf Of Andreas Schmid
Sent: April 29, 2005 1:36 PM
To: pythonfordelphi@yahoogroups.com
Subject: Re: [pythonfordelphi] P4D
Update
 
If you don`t have access to
 
http://membres.lycos.fr/marat/delphi/python.htm
 
anymore, which is still the #1 search result if you google for
"Python for Delphi", why not contact
Lycos and ask them to remove it?
 
I remember I had great difficulties finding the more recent version and
the new mailing list!
 
-Andreas
 
----- Original Message -----
From: Morgan Martinet

To: pythonfordelphi@yahoogroups.com

Sent: Sunday,
April 24, 2005 5:54 PM
Subject: [pythonfordelphi]
P4D Update
 
Hi everybody,
 
A new release 3.28 of
P4D is available at http://mmm-experts.com/Downloads.aspx?ProductId=3
Some bug fixes but 2 major enhancements:
-      Kiriakos Vlahos generously donated his work to the
P4D community: a complete and elegant Python
IDE written in Delphi, only with
opensource components. This is a really good alternative to the already
excellent Pythonwin.
-      A small change in the VarPyth unit now allows you to
invoke Python functions with named parameters.
 
Here’s the change log for this release:
·       Fixed a
bug in PyObjectAsVariant thanks to Kiriakos Vlahos [kvlahos@...]
Testing for Boolean values should be done before Integer values, as Boolean
inherit from Integers.
 
·       Fixed a bug
in ArrayToPyTuple, ArrayToPyList and ArrayToPyDict when giving empty string as
argument thanks to Dietmar Budelsky.

·       Added
demo29 showing how to exchange images between Delphi
and Python Imaging Library (PIL).
 
·       In
PythonEngine.pas, added APIs:
o      PyObject_Call

o      PyErr_SetInterrupt

 
·       Added new
feature to VarPyth: you can now invoke functions or methods using named parameters.
A big advantage of named parameters over regular parameters is that the order
of parameters is not important
and help invoking functions with many optional parameters, as you can only
specify the one you need.
Note that any Python function can be invoked with or without named parameters,
and that you can mix regular and named parameters.

Python code:
·            
       
def MakeList(a, b, c):
·            
       
  return [a, b, c]

Delphi code:
  var
 
         _main : Variant;
    L : Variant;
  begin
    _main :=
MainModule;
    L :=
_main.MakeList(1, 2, 3); // L = [1, 2, 3] (this is the old way)
    L :=
_main.MakeList(1, c := 3, b := 2); // L = [1, 2, 3] Note that you can mix
 
                                          //
regular and named parameters.
    L :=
_main.MakeList(c := 3, a := 1, b := 2); // L = [1, 2, 3] Only named parameters
 
·       Added
Demo30 to show how you can use named parameters.
 
·       Added
Project PythonIDE thanks to a
donation of Kiriakos Vlahos [kvlahos@...].
PyScripter was not designed to compete with other Python IDE tools but rather
to serve the purpose of providing a strong scripting
solution for Delphi Applications. However it is a reasonably good stand-alone
Python IDE.

Features:
o      Easy
Integration with Delphi applications
o      Syntax
Highlighting
o      Brace
Highlighting
o     
Python source code
utilities ((un)tabify, (un)comment, (un)indent)
o      Code
Explorer
o      File
Explorer with filter
o      Easy
configuration and browsing of the Python Path
o      Access to
Python manuals through the Help menu and context sensitive help (press F1 on a
Python keyword inside the editor)
o      Integrated
Python Interpreter
o      Command
History
o      Alt-UP :
previous command
o      Alt-Down
: next command
o      Esc :
clear command
o      Code
Completion
o      Call Tips

o      Integrated
Python Debugging
o      Debug
Windows
o      Call
Stack
o      Variables
Window
o      Watches
Window
o      BreakPoints
Window
o      Modern UI
with docked forms
o      Persistent
configurable IDE options
 
Note that P4D only contains PythonIDE source code, but you
can download a compiled version from
http://mmm-experts.com/Downloads.aspx?ProductId=4


If you want to rebuild it by yourself, you`ll need to look at
PythonIDEReadme.txt for the required
component packages.
 
·       Flagged
GetAtom of PythonAtom.pas and TAtomPythonEngine of AtomPythonEngine.pas as
deprecated when using Delphi 6 or later.
You should replace TAtomPythonEngine by TPythonEngine and PythonAtom.pas by
VarPyth.pas.
Note that VarPyth and PythonAtom act differently. So, simply changing the unit
may compile but your application may crash at runtime because PythonAtom
converts Python sequences into variant arrays for instance, whereas VarPyth
will keep the Python sequence object and let you act on it.
See discussions in the yahoo group and Andy`s tutorial about latest techniques:
http://www.atug.com/andypatterns/PythonDelphiLatest.htm

Converting TAtomPythonEngine is easy: open the form or datamodule hosting the
component, View as text (Alt + F12), replace TAtomPythonEngine by
TPythonEngine, View as Form (Alt + F12), in the unit, replace TAtomPythonEngine
by TPythonEngine nad replace AtomPythonEngine by PythonEngine (in the uses).
Save.

Note that eventhough you get a deprecated warning, it still works as it is and
you`re not required to do the change.
It`s only better to do it for the future and for the additional benefits of
VarPyth...
·       Updated
file `Deploying P4D.pdf` to refer to the Python tool that helps collect all
module dependencies.
 


To Post a message, send it to:  
pythonfordelphi@eGroups.com

To Unsubscribe, send a blank message to:
pythonfordelphi-unsubscribe@eGroups.com



To
Post a message, send it to:   pythonfordelphi@eGroups.com

To Unsubscribe, send a blank message to:
pythonfordelphi-unsubscribe@eGroups.com





Yahoo!
Groups Links
·       To
visit your group on the web, go to:
http://groups.yahoo.com/group/pythonfordelphi/
 
·       To
unsubscribe from this group, send an email to:
pythonfordelphi-unsubscribe@yahoogroups.com
 
·       Your
use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



 
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help