Questions tagged [richtextctrl]
13 questions
3
votes
2 answers
wxPython RichTextCtrl with strikethrough
I want to set text with strike-through in RichTextCtrl of wxPython. But could not find any method like BeginStrikethrough or SetStrikethrough.
Is it possible to apply strike-through in RichTextCtrl? How?
EDIT 1:
Font with strike-through flag used…

arvinchhi
- 477
- 3
- 13
3
votes
3 answers
How to use Rich Text editor for an XUL application
I am trying to implement Rich text editor like http://tinymce.moxiecode.com/
for my XUL application. It looks like i can't user tinymce as some of its scripts is using the element "document.body" and firefox is not supporting it. Did any implement…

vamsivanka
- 792
- 7
- 16
- 36
2
votes
2 answers
How can I load true type front (ttf) into wxPython from file directly
I'm working on a wxPython project with text editing capabilities. I want to package a font with this project (a .ttf file) and have it as the default font for the text editor. Can this be done in wxPython? There was a similar question in 2007 in…

user3247720
- 23
- 3
1
vote
1 answer
RichTextCtrl changing style based on cursor position
I'm having a strange behaviour with wx.richtext.RichTextCtrl. I have a panel containing a read only RichTextCtrl containing some text info about an object and a button updating the content on click. Depending of where the user put the cursor on the…

Fred
- 33
- 1
- 3
1
vote
1 answer
How can I insert RTF into a wxpython RichTextCtrl?
Is there a way to directly insert RTF text in a RichTextCtrl, ex:without going through BeginTextColour? I would like to use pygments together with the RichTextCtrl.

Geo
- 93,257
- 117
- 344
- 520
1
vote
1 answer
Memory leak using richTextCtrl and wxPython
I have a problem with memory leaks for a application using wxPython and wx.richtext.RichTextCtrl. The application resembles this one - a simple digital clock on a window frame. In order to keep the code clean I use a different module to update the…

danneedebro
- 57
- 8
1
vote
1 answer
wxPython - How can I display a html formatted string in wx.RichTextCtrl
I'm trying to display some string (html formatted) in a Richtext Ctrl. In my code I tried to use it this way (self.txtmain is the RichTextCtrl):
out = StringIO()
htmlhandler = rt.RichTextHTMLHandler()
buffer =…

wxpydon
- 61
- 1
- 6
0
votes
1 answer
wxwidget wxRichTextCtrl compiled results in ld: symbol(s) not found
I am on MacOS Mojave 10.14. I can compile wxWidget code and have compiled a few demos, etc. The only feature of wxWidget I cannot compile is a wxRichTextCtrl. Whenever I do the following in my main.cpp file I get error:
wxRichTextCtrl* richTextCtrl…

linker
- 105
- 5
0
votes
1 answer
Superscript in wxPython RichTextCtrl
I am trying to get wxPython RichTextCtrl to display superscripts.
I have seend some wxWidgets code at
http://wxwidgets.10942.n7.nabble.com/rich-text-and-font-attributes-td23557.html
and also seen the documentation at…

user0
- 97
- 9
0
votes
0 answers
PositionToCoords for RichTextCtrl
I have been using the PositionToCoords() method to convert the text cursor position to window coordinates in the TextCtrl widget.
Now, I have to move to using the RichTextCtrl widget but PositionToCoords() is not available there and I cannot find an…

user0
- 97
- 9
0
votes
1 answer
wxPython - RichTextCtrl Event Handling
For testing purposes, I'm trying to print in the console everything that I write in a RichTextCtrl. However, it isn't working. Here is the way I wrote the binding for the RichTextCtrl, called textArea:
self.textArea.Bind( wx.EVT_KEY_DOWN,…

Fernando Karpinski
- 268
- 3
- 12
0
votes
1 answer
Get caret position in pixel in RichtextCtrl
How we get caret position in x,y pixel to window. i tried following method but it only gives column and row for given position.
windowCaretPosition = self.__editor.PositionToXY(self.__editor.GetInsertionPoint())
it returns tuple with column and…

user2418193
- 1
- 4
0
votes
1 answer
can't load xml file in wx python RichtextCtrl
iam new to wxpython. iam trying to load xml in richtextctrl but it's showing blank. iam using richtextctrl for display xml and images.
class TestFrame(wx.Frame):
def __init__(self, parent):
wx.Frame.__init__(self, parent, -1, "A Grid",…

user2418193
- 1
- 4