468,267 Members | 1,960 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,267 developers. It's quick & easy.

[wxPython] Smileys in my text ctrl

All:
I am developing a chat client in python. I want to include smileys in
my instant messages. Which component support this? I used wxTextCtrl
for both input and output.
This chat client runs both in win and linux platform. Any suggestion
will be greatly appreciated.

Thanks
Madhan
Jul 18 '05 #1
8 2417
so*********@gmail.com (Madhan) writes:
All:
I am developing a chat client in python. I want to include smileys in
my instant messages. Which component support this? I used wxTextCtrl
for both input and output.
Hi,

I have never done a thing like that, but I think mybe something like a
wxHtmlWindow (see demo) can help. You can insert the smileys like png
images.

This chat client runs both in win and linux platform. Any suggestion
will be greatly appreciated.

Good luck!

Zunbeltz
Thanks
Madhan


--
Zunbeltz Izaola Azkona | wmbizazz at lg dot ehu
dotes
Materia Kondentsatuaren Fisika Saila |
Zientzia eta Teknologia Fakultatea | Phone: 34946015326
Euskal Herriko Unibertsitatea |
PK 644 | Fax: 34 944648500
48080 Bilbo (SPAIN) |
Jul 18 '05 #2
Madhan wrote:
All:
I am developing a chat client in python. I want to include smileys in
my instant messages. Which component support this? I used wxTextCtrl
for both input and output.


If you want something more powerful and flexible than a wxTextCtrl, try
looking at the wxStyledTextCtrl, which is a wxWidgets wrapper around the
Scintilla control. This is the same component that, for example, the
SciTe programmer's editor and the PythonWin IDE use. I've never needed
to use it, myself, but I expect that it should be able to do just about
anything you might want. (The only reservation I'd have about it is
that it's possible that it's a bit more heavyweight than you'd want;
it's hard to judge that without taking a close look, though.)

Jeff Shannon
Technician/Programmer
Credit International

Jul 18 '05 #3
Jeff Shannon:
If you want something more powerful and flexible than a wxTextCtrl, try
looking at the wxStyledTextCtrl, which is a wxWidgets wrapper around the
Scintilla control.


There is no reasonable way to get Scintilla to display smileys. It is a
very serious widget :-(

Neil
Jul 18 '05 #4
Hi Zunbeltz,
Thanks for the info, but I think wxHtmlWindow is a complete window
component. I think I cannot use that as my text panel, because the
methods of wxHtmlWindow do not support appending the text(IMessages),
all it supports is loading a web page !!.
So may be I have to look for some other component.

I really appreciate your effort.

If anybody have any other ideas, it will be great to know that.

Thanks
Maddy

Zunbeltz Izaola <zu******@wm.lc.ehu.es.XXX> wrote in message news:<ct*************@lcpxdf.wm.lc.ehu.es>...
so*********@gmail.com (Madhan) writes:
All:
I am developing a chat client in python. I want to include smileys in
my instant messages. Which component support this? I used wxTextCtrl
for both input and output.


Hi,

I have never done a thing like that, but I think mybe something like a
wxHtmlWindow (see demo) can help. You can insert the smileys like png
images.

This chat client runs both in win and linux platform. Any suggestion
will be greatly appreciated.


Good luck!

Zunbeltz
Thanks
Madhan

Jul 18 '05 #5
Hi Neil Hodgson,
I was just checking about the wxStyledTextCtrl and found the page. I
then realized that the scintilla component is written by you. So I got
to take your words :)
but is there any other component that I can make use of.

Thanks
Maddy

"Neil Hodgson" <nh******@bigpond.net.au> wrote in message news:<g0******************@news-server.bigpond.net.au>...
Jeff Shannon:
If you want something more powerful and flexible than a wxTextCtrl, try
looking at the wxStyledTextCtrl, which is a wxWidgets wrapper around the
Scintilla control.


There is no reasonable way to get Scintilla to display smileys. It is a
very serious widget :-(

Neil

Jul 18 '05 #6
Madhan:
but is there any other component that I can make use of.


Some, such as Tk's text widget allow you to include images.

Neil
Jul 18 '05 #7
Neil Hodgson schrieb:
There is no reasonable way to get Scintilla to display smileys. It is a
very serious widget :-(


What does your 'frowney' mean? Do you dislike the idea of displaying
smileys or do you regret that Scintilla is a serious widget?

But anyway, there is a way: open a Scite window, switch to Unicode
and enter the Unicode character U+263A: This is a smiley: ☺

:-)

Since Scite is Unicode enabled (thanks, Neil) I do nearly all my
text editing in UTF-8.

Mit freundlichen Gruessen,

Peter Maas

--
-------------------------------------------------------------------
Peter Maas, M+R Infosysteme, D-52070 Aachen, Tel +49-241-93878-0
E-mail 'cGV0ZXIubWFhc0BtcGx1c3IuZGU=\n'.decode('base64')
-------------------------------------------------------------------
Jul 18 '05 #8
Peter Maas:
Neil Hodgson schrieb:
There is no reasonable way to get Scintilla to display smileys. It is a very serious widget :-(
What does your 'frowney' mean? Do you dislike the idea of displaying
smileys or do you regret that Scintilla is a serious widget?


It was more sympathy with the OP not being able to achieve their goal.
But anyway, there is a way: open a Scite window, switch to Unicode
and enter the Unicode character U+263A: This is a smiley: ?

:-)


OK, it is available! I expect the OP wanted colourful smileys as are
displayed in some mail applications.

Neil
Jul 18 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by SeeBelow | last post: by
1 post views Thread by mdk.R | last post: by
10 posts views Thread by Mario | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.