473,327 Members | 1,979 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

running a Delphi part from Python ?


I'm starting to get used to wxPython (coming from Delphi),
and it seems it can do almost everything I need.

Now one thing I'm missing is a good RichEditor.
I've a good RichEdit in Delphi ...
.... so what are the possibilities to include that in Python ?

The most simple for me to do,
seems to create a DLL, which contains the RichEdit and all it's controls,
as an MDI child window.

So how could I interface to some Delphi-DLL in Python ?
And maybe even more complicated,
is a MDI-child written in a Delphi-DLL,
identical to the wxPython MDI-child
( If I remember well, I read somewhere that MDI is implemented in it's own manner,
not equal to the standard Windows MDI interface)

thanks,
Stef Mientki
Jul 16 '07 #1
9 1404
Stef Mientki a écrit :
>
I'm starting to get used to wxPython (coming from Delphi),
and it seems it can do almost everything I need.

Now one thing I'm missing is a good RichEditor.
Scintilla is for you, then. IIRC, there's a wxWidget widget embedding
it, and quite a few editors using it.

Jul 16 '07 #2
Bruno Desthuilliers wrote:
Stef Mientki a écrit :
>>
I'm starting to get used to wxPython (coming from Delphi),
and it seems it can do almost everything I need.

Now one thing I'm missing is a good RichEditor.

Scintilla is for you, then. IIRC, there's a wxWidget widget embedding
it, and quite a few editors using it.
AFAIK, Scintilla is a code editor.
What I need looks more like ms-word,
handling lists, tables, images, formulas.

thanks,
Stef Mientki
Jul 16 '07 #3
Stef Mientki a écrit :
AFAIK, Scintilla is a code editor.
What I need looks more like ms-word,
handling lists, tables, images, formulas.

thanks,
Stef Mientki

So you'll need the RichTextCtrl

http://www.wxpython.org/docs/api/wx....trl-class.html

See a sample in the demo under "Recent Additions".
Jul 16 '07 #4
tool69 wrote:
Stef Mientki a écrit :
>AFAIK, Scintilla is a code editor.
What I need looks more like ms-word,
handling lists, tables, images, formulas.

thanks,
Stef Mientki


So you'll need the RichTextCtrl

http://www.wxpython.org/docs/api/wx....trl-class.html

See a sample in the demo under "Recent Additions".
Well it's better,
- it has lists
- it has images, but no image editing,
It doesn't have
- drag & drop
- tables,
- formula editing,
- screen capture,
- links
- embedded code
- CSS
- ....
so unfortunately it's not yet sufficient :-(

thanks,
Stef Mientki
Jul 16 '07 #5
On 7/16/07, Stef Mientki <S.**************@mailbox.kun.nlwrote:
tool69 wrote:
Stef Mientki a écrit :
AFAIK, Scintilla is a code editor.
What I need looks more like ms-word,
handling lists, tables, images, formulas.

thanks,
Stef Mientki

So you'll need the RichTextCtrl

http://www.wxpython.org/docs/api/wx....trl-class.html

See a sample in the demo under "Recent Additions".

Well it's better,
- it has lists
- it has images, but no image editing,
It doesn't have
- drag & drop
- tables,
- formula editing,
- screen capture,
- links
- embedded code
- CSS
- ....
so unfortunately it's not yet sufficient :-(
This goes far beyond the requirement for a rich text editor. You're
now talking about rich object integration, which is about 80% of a
full featured word processor. You won't find a cross platform
implementation that's suitable for use as a component in anything.

Delphi components are tightly tied to the Delphi runtime environment
and its' gui abstractions, so embedding it as is is will be a massive
hack (and require extensive C code) if its even possible.

However, any company who writes such a full featured control is likely
to package it as an ActiveX control so they can get the sales from the
VB guys, and you can embed ActiveX control in wxPython applications
(Windows only, of course).
Jul 16 '07 #6
On 16 Lip, 11:33, Stef Mientki <S.Mientki-nos...@mailbox.kun.nl>
wrote:
tool69 wrote:
Stef Mientki a écrit :
AFAIK, Scintilla is a code editor.
What I need looks more like ms-word,
handling lists, tables, images, formulas.
thanks,
Stef Mientki
So you'll need the RichTextCtrl
http://www.wxpython.org/docs/api/wx....trl-class.html
See a sample in the demo under "Recent Additions".

Well it's better,
- it has lists
- it has images, but no image editing,
It doesn't have
- drag & drop
- tables,
- formula editing,
- screen capture,
- links
- embedded code
- CSS
- ....
so unfortunately it's not yet sufficient :-(

thanks,
Stef Mientki
Of course You can always write one, that's succicient for Your needs,
and make it available under GPL. ;-)

Cheers,

Marek

Jul 16 '07 #7
Chris Mellon wrote:
On 7/16/07, Stef Mientki <S.**************@mailbox.kun.nlwrote:
>tool69 wrote:
Stef Mientki a écrit :

AFAIK, Scintilla is a code editor.
What I need looks more like ms-word,
handling lists, tables, images, formulas.

thanks,
Stef Mientki
So you'll need the RichTextCtrl

http://www.wxpython.org/docs/api/wx....trl-class.html

See a sample in the demo under "Recent Additions".

Well it's better,
- it has lists
- it has images, but no image editing,
It doesn't have
- drag & drop
- tables,
- formula editing,
- screen capture,
- links
- embedded code
- CSS
- ....
so unfortunately it's not yet sufficient :-(

This goes far beyond the requirement for a rich text editor. You're
now talking about rich object integration, which is about 80% of a
full featured word processor.
The features I describe, are just 1% of the (in-)capabilities of ms-word,
so what do you call ms-word ;-)

You won't find a cross platform
implementation that's suitable for use as a component in anything.

Delphi components are tightly tied to the Delphi runtime environment
and its' gui abstractions, so embedding it as is is will be a massive
hack (and require extensive C code) if its even possible.
The editor I've in mind communicates only through messages, about 20 to the editor and 5 back,
so that doesn't sound too much.
>
However, any company who writes such a full featured control is likely
to package it as an ActiveX control so they can get the sales from the
VB guys, and you can embed ActiveX control in wxPython applications
(Windows only, of course).
Very good idea,
although I've never done it,
according to the decriptions,
it should be just one press on a button to create an ActiveX of the Editor-component.
thanks,
Stef Mientki
Jul 16 '07 #8
>
Of course You can always write one, that's succicient for Your needs,
and make it available under GPL. ;-)
Why not BSD ?
But I've to read all the licenses of the used components first ;-)

cheers,
Stef Mientki
Jul 16 '07 #9
On 7/16/07, Stef Mientki <S.**************@mailbox.kun.nlwrote:
Chris Mellon wrote:
Delphi components are tightly tied to the Delphi runtime environment
and its' gui abstractions, so embedding it as is is will be a massive
hack (and require extensive C code) if its even possible.
The editor I've in mind communicates only through messages, about 20 to the editor and 5 back,
so that doesn't sound too much.
If it communicates entirely through messages, then it's likely not a
Delphi component at all, and instead a native (to Windows)
implementation and the Delphi component you've used is simply a
wrapper around the messaging API. If that's the case, then you can
probably use it directly in wxPython, using ctypes. Confirm this with
your component vendor by finding out if it's usable from C using the
Windows API.
Jul 16 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: PythonMan | last post by:
Any Software can change Python source code to Delphi ? thx --
8
by: achrist | last post by:
I'm aving some trouble getting callbacks from a Delphi DLL back to python working through ctypes. The call from python to the DLL works fine. In the Delphi(5) code: type TCallbackFunc =...
0
by: Shane | last post by:
Greetings, I've been trying to get PyRun_SimpleFile to work from Delphi without success, has any one done this? Doing it in C/C++ is trivial, but I need Delphi and I'm not a Delphi expert. ...
0
by: Tom | last post by:
delphi 7 python 2.3 win98 Python for Delphi V3.25 In Delphi: 1 Create a new Form ; 2 Drop a TMemo(Memo1) to contain python code; 3 Drop a TPythonInputOutput (PythonInputOutput1) ;
15
by: windozbloz | last post by:
Bye Bye Billy Bob... I'm back with one more question, then I'll chill. I have scoured the news and net for info about Borlands KYLIX 3 and have found little technical info about it. Their...
16
by: glenn | last post by:
I've gotten a COM server written in C# and I can call it from a VBScript just fine and it works perfectly. However, I import it into Delphi 6 or Delphi 2005 and I can not get access to any of the...
13
by: David Lozzi | last post by:
Howdy My following script is not processing at all! <script runat="server"> Sub Page_Load(sender as Object, e as EventArgs) lblWelcome.text = "hello" End Sub </script>
5
by: Just call me James | last post by:
Hi, Coming away from the luxury of the delphi IDE has been something of a shock. As a consequence I've become aware that maybe I need to spend some money on a python IDE. As a beginner I...
2
by: Larry Bates | last post by:
I have a rather large Python class that I've converted to a COM object. I can dispatch (using either Python or VB) and call the methods perfectly. Now a new client wants to call it from Delphi. ...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.