473,545 Members | 2,063 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1408
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
2642
by: PythonMan | last post by:
Any Software can change Python source code to Delphi ? thx --
8
4007
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 = function(x: Integer): Integer; stdcall;
0
1438
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. In Delphi I've managed to load/unload/initialize/import/etc the python dll/functions and get PyRun_SimpleString to work no problem.
0
1584
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
1873
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 screen shots are very impressive, similar to Visual Basic. I have sent several emails to Borlands Sales and Pre-Sales departments. Pre-Sales bounces...
16
3044
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 functions that are in the server. Is there something specific that I need to do in order to get Delphi to see the functions that are a part of the...
13
4573
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
2202
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 reckon integrated debugging would be helpful.
2
1867
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. Can anyone out there give me any pointers on how that would be done. Are there any "gotchas" about the way arguments or return values would need...
0
7405
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7659
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7811
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7760
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5975
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5334
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4949
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3455
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1887
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.