Questions tagged [textctrl]

A widget in the wxWidgets framework for displaying and editing text.

TextCtrl is a widget in the wxWidgets framework for displaying and editing text.

Related Tags

62 questions
0
votes
1 answer

What is the easiest way to make StyledTextCtrl look like a TextCtrl?

The only additional features I need from StyledTextCtrl are the following: Change caret width using SetCaretWidth(pixels) Change caret colour using self.SetCaretForeground(colour) Change entire background colour to transparent (or alpha). I don't…
Renae Lider
  • 1,004
  • 7
  • 20
0
votes
2 answers

How can I fix the scroll bug when using Windows rich edit controls in wxpython?

When using wx.TextCtl with the wx.TE_RICH2 option in windows, I get this strange bug with the auto-scroll when using the AppendText function. It scrolls so that all the text is above the visible area, which isn't very useful behaviour. I tried just…
ChrisD
  • 3,378
  • 3
  • 35
  • 40
0
votes
2 answers

wxPython - Process input from one TextCtrl and send output to another TextCtrl?

I am sure this is a terribly stupid question. But I've used python for a year, i went through "Learn Python the hard way", I went through the Zetcode WxPython Tutorial, I looked through the WXPython TextCtrl Demo, and I've spent 2 days google…
Zaorish9
  • 103
  • 2
  • 10
0
votes
3 answers

How do I safely decode a degrees symbol in a wxPython app?

I have a debug app I've been writing which receives data from a C-based process via UDP. One of the strings sent to me contains a ° character - Unicode U+00B0 (which incidentally breaks the StackOverflow search function!). When my wxPython…
Jon Cage
  • 36,366
  • 38
  • 137
  • 215
0
votes
0 answers

Displaying Characters of Unicode in wx. TextCtrl in python 2.7

I wish to create a unicode editor in an Indian Language(Malayalam) . I have a set of unicode letters for Malayalam language. But my requirement is, I need to enter only malayalam characters in a wx.TextCtrl. I am able to write a dictionary mapping …
archana
  • 9
  • 3
0
votes
1 answer

wx.TextCtrl.SetDefaultStyle not working?

a simple example: t.py import wx class MyFrame(wx.Frame): def __init__(self,parent): wx.Frame.__init__(self,parent,-1,title="my Frame",pos=(100,100),size=(300,400)) panel=wx.Panel(self,-1) …
tuxpy
  • 1
  • 1
0
votes
1 answer

Change the text color in a wx.TextCtrl under Mac or Linux

I am looking for a widget under wx that is similar to TextCtrl with the capabilities to show rich content under Linux and Mac (e.g. different text colors in different lines). I know that wx.TextCtrl with wx.TE_RICH style (or wx.RichTextCtrl) only…
happyhuman
  • 1,541
  • 1
  • 16
  • 30
0
votes
4 answers

wxpython threading textctrl delay

I have any issue with wxpython's textctrl and threading. Would appreciate any help in resolving this issue. My program processes files, as and when each file is processed it is listed within the textctrl as being completed. When working with just a…
Clinton Moffat
  • 211
  • 1
  • 2
  • 12
0
votes
1 answer

wxpython threading textctrl disappears until files are processed

Appropriate code provided below. I had this working once but have since messed up due to having to change some of the other code. Can't figure out what I've done. The encrypt function creates a thread and makes a call to function EncryptProc to…
Clinton Moffat
  • 211
  • 1
  • 2
  • 12
0
votes
1 answer

wxpython textctrl disappears while processing data

I have a really weird issue that I have been trying to solve for some time now without any luck. My program consists of a main frame, a menu bar, underneath the menu bar resides a text control in read only mode, under that a status bar. within my…
Clinton Moffat
  • 211
  • 1
  • 2
  • 12
0
votes
1 answer

WxPython MultiLine TextCtrl to 2D Array

I'm trying to use a multiline TextCtrl to get user inputted multiline CSV data and convert it to a 2D array. I've not been successful. Any ideas? Thanks in advance. import wx import csv import StringIO Title="MultiLine TextCtrl to 2D Array" class…
Mike
  • 1,561
  • 3
  • 15
  • 18
0
votes
1 answer

wxpython TextCtrl color specific part of the text

I'm using wxpython to create GUI with python, now, is there a way to color specific part of the text? Example (using Tkinter): https://i.stack.imgur.com/fGAVA.png Here is my Print function: def Print(self, String): ''' Print Received Data ''' …
user2367115
  • 53
  • 3
  • 10
0
votes
1 answer

How to handle wxPython TextCtrls that influence each other's content

I am trying to build a GUI in wxPython. I have two TextCtrls. Let's say they are first_index_input and last_index_input, and they control model.f_i and model.l_i, respectively. There's a condition: For proper model execution, model.f_i must be <=…
bob.sacamento
  • 6,283
  • 10
  • 56
  • 115
0
votes
1 answer

Can't edit TextCtrl built from other function than __init__ (wxPython)

I have trouble with editing, inputting to or even clicking a TextCtrl or actually any other widget that is not built in the init function. Let's say I have this bit: class firstpanel(wx.Panel): def __init__(self, parent): …
Laci
  • 566
  • 2
  • 15
  • 39
0
votes
1 answer

Validating a URL in a TextCtrl - Python/wxPython

I'm creating a simple application and for one portion I would like to take the user's input from a TextCtrl and check if it is a valid URL. I've made this program without a GUI and used the following code: (I've changed it to use wxPython Error…
Rev22
  • 27
  • 1
  • 3