wx.textctrl

How do I get the scroll position / range from a wx.TextCtrl control in wxPython

I have a little logging app (written in wxPython) that receives data from a bit of kit we're developing, and I want to display the text in a scrolling window. As it stands I'm using a wx.TextCtrl for the text display, but I'm having some issues with the scrolling behaviour. Basically, I'd like it so that if the scrollbar is at the botto...

Deleting lines from wx.TextCtrl

I am using a wx.TextCtrl to output text from a network daemon. As the output is quite verbose, the size of text in the TextCtrl can become huge (BTW is there any limitation on the size of the contents of a TextCtrl?) I would like to delete the top N lines from the TextCtrl when TextCtrl.GetNumberOfLines() exceeds a predefined treshold. W...

Reseting text style when pasting/droping text into wx.TextCtrl

Hi! I have MyTextCtrl(wx.TextCtrl) class that always sets wx.TE_RICH style for its objects (I need colourful letters :) and support for arabic letters), but when someone pastes or drops formatted text into MyTextCtrl its style is preserved (for example fontsize=150) which is thing I don't want to happen. Is there any way to ignore or r...

How do I make wx.TextCtrl multi-line text update smoothly?

I'm working on an GUI program, and I use AppendText to update status in a multi-line text box(made of wx.TextCtrl). I noticed each time there's a new line written in this box, instead of smoothly adding this line to the end, the whole texts in the box just disappear(not in real, just visually) and I have to click the scroll button to che...

How come this way of ending a thread is not working?

I just came out with my noob way of ending a thread, but I don't know why it's not working. Would somebody please help me out? Here's my sample code: import wx import thread import time import threading class TestFrame(wx.Frame): def __init__(self): wx.Frame.__init__(self, parent = None, id = -1, title = "Testing", pos=(35...