Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python in delphi example
02-13-2010, 05:05 AM
Post: #11
RE: python in delphi example
Yeah i didn't do that. After downloading and installing Python 2.5.4 i have output as you wanted.
Proof :
[Image: 39618_codecainepythonexecute.jpg]
Very good. I knew that is possible but i have never tried to do that.
This code rulez !!!
Great work codecaine !

There's a fine line between genius and insanity. I have erased this line.
Oscar Levant
There's a fine line between an administrator and black hat hacker. I have erased this line.
Dr DEBCOL
Visit this user's website Find all posts by this user
Quote this message in a reply
02-13-2010, 05:49 AM (This post was last modified: 02-13-2010 05:51 AM by codecaine.)
Post: #12
RE: python in delphi example
Thanks man Smile awesome. What I have also done is had make practice forms where people put in input in a editbox then I just add the edit text in part of TStrings and run in in a python script
Another good thing to do is to run a python script and put the result in a TString
When you install Python4Delphi is installs the components in delphi for you you don't have to do no configurations. Hassle free.
Visit this user's website Find all posts by this user
Quote this message in a reply
02-13-2010, 06:16 AM
Post: #13
RE: python in delphi example
I was investigating and i have found this page for "Python for Delphi" downloads :
http://membres.multimania.fr/marat/delphi/python.htm
But newest version of "Python for Delphi" is 3.25 which supports Python 2.3.
So codecaine do you know where can i find "Python for Delphi" that supports Python 2.5 or newer ???

There's a fine line between genius and insanity. I have erased this line.
Oscar Levant
There's a fine line between an administrator and black hat hacker. I have erased this line.
Dr DEBCOL
Visit this user's website Find all posts by this user
Quote this message in a reply
02-13-2010, 06:46 AM (This post was last modified: 02-13-2010 06:47 AM by codecaine.)
Post: #14
RE: python in delphi example
http://mmm-experts.com/Downloads.aspx?ProductId=3
To make the application portable without a user having python you have to ship the exe with python25.dll and a lib folder with any import libs you use if you used any else you don't need a lib library
Visit this user's website Find all posts by this user
Quote this message in a reply
02-13-2010, 06:54 AM
Post: #15
RE: python in delphi example
THX, that build is 3.32 (Oct 14, 2006) Very good !

There's a fine line between genius and insanity. I have erased this line.
Oscar Levant
There's a fine line between an administrator and black hat hacker. I have erased this line.
Dr DEBCOL
Visit this user's website Find all posts by this user
Quote this message in a reply
02-13-2010, 07:12 AM
Post: #16
RE: python in delphi example
no problem Smile
Visit this user's website Find all posts by this user
Quote this message in a reply
05-27-2011, 01:57 AM
Post: #17
RE: python in delphi example
Python for delphi has been update here http://python4delphi.googlecode.com You can now use the most recent python version and current delphi installation. I installed and tested on Delphi XE I had to modify the file for XE version though.
Visit this user's website Find all posts by this user
Quote this message in a reply
05-27-2011, 08:25 AM (This post was last modified: 05-27-2011 08:47 AM by codecaine.)
Post: #18
RE: python in delphi example
Here is a updated guide and tutorial on how to install Delphi4Python on Delphi XE if you have lower versions it will work for them as well.
http://www.freelancecode.net/community/v...1570#p1570
My last example will work with python3.2 but string.letters from the string module is string.ascii_letters in python3 else you see a python error message box saying there no just object in string
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


 Quick Theme: