473,320 Members | 1,535 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,320 software developers and data experts.

[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 2549
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: SeeBelow | last post by:
Do many people think that wxPython should replace Tkinter? Is this likely to happen? I ask because I have just started learning Tkinter, and I wonder if I should abandon it in favor of...
1
by: flupke | last post by:
Hi, i'm trying to convert my java console app to a python gui. Now, the only problem i seem to have at the moment are the resizers for the layout. It seems that for the purpose of what i'm...
1
by: mdk.R | last post by:
Hello all: i'am installed wxPython 2.5 and Python2.3.4..i try execute script with wxPython but it show error: Traceback (most recent call last): File "E:\py\test.py", line 7, in ? import wx...
10
by: Mario | last post by:
Hello all, I'm trying hard to make possible to print some simple text from python to the default printer using wxPython, after days of internet searches I found this page:...
3
by: Tim_k | last post by:
Does anyone know how to set the text property for a control that is loaded into the Control class in a web form? The text property exists for Windows forms but not for web pages? I'd like to set...
9
by: Tyler | last post by:
Hello All: I am currently working on a project to create an FEM model for school. I was thinking about using wxPython to gather the 12 input variables from the user, then, after pressing the...
3
by: Klaus Brune | last post by:
Hello all, When one tabs through a form (specifically, in Firefox), all the text in a field is automatically selected. What I'm looking for is a way to put a function (in onFocus perhaps)...
1
DebadattaMishra
by: DebadattaMishra | last post by:
Introduction In case of rich applications, you must have observed that a text field behaves like a dynamic combo box. When the user enters some characters in the text field, a popup will come up...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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.