Questions tagged [wxtextctrl]

wxTextCtrl is a text control in wxWidgets that allows text to be displayed and edited

wxTextCtrl is a text control in that allows text to be displayed and edited

105 questions
0
votes
1 answer

wxPython wx.TextCtrl is uneditable

In my wxPython Application I have a few wx.TextCtrl input fields for a form. My problem is, some of my wx.TextCtrl input fields are uneditable, meaning I can not type in the field nor can I select text that is in the field. My parent wx.Panel in my…
user908759
  • 1,355
  • 8
  • 26
  • 48
0
votes
3 answers

wxPython: show number repeatedly

I'm a very beginner of Python Programming, and now I'm wondering why my widgets cannot show number repeatedly. That is, I'd like to let the text show numbers from 1 to 9, but in the while loop, it only shows 9.... Any suggestions? Here is my…
0
votes
1 answer

wxPython/TextCtrl replacing a character within the first x lines of a string

I've scanned the questions here as well as the web and haven't found my answer, this is my first question and I'm a noobie to (wx)Python so go easy on me. Using TextCtrl I'm trying to remove a single character within a string, this string will…
0
votes
1 answer

How to create textCtrl box dynamically?

Is there a way to create textCtrl box dynamically by clicking a button? So I am planning to build a GUI where I provide one TextCtrl box for the user to enter one value by default.But if the user wants one more value to enter ,there should be a '+'…
0
votes
1 answer

How to retrieve multiple numbers from TextCtrl?

I have following set of TextCtrl which I edit when needed. import wx class MyCheckBox(wx.Frame): def __init__(self): wx.Frame.__init__(self, None, -1, 'Values', size=(490, 450)) panel = wx.Panel(self, -1) List = [(70, 55),…
Ibe
  • 5,615
  • 7
  • 32
  • 45
0
votes
2 answers

How to receive drop events in a wxTextCtrl?

I have a wxTextCtrl-derived class that overrides OnDropFiles. However, dragging something over the control does nothing. (The cursor changes to the 'not allowed' cursor.) I tried DragAcceptFiles(true) but that only enabled the built-in drop handler.…
Nathan Osman
  • 71,149
  • 71
  • 256
  • 361
0
votes
1 answer

wx.TextCtrl change on mousehover

I have a wxApplication with several wxTextCtrl, for example: self.tc1 = wx.TextCtrl(self.panel,-1,pos=(100,150),size=(60,20)) self.tc2 = wx.TextCtrl(self.panel,-1,pos=(100,170),size=(60,20)) self.tc3 =…
Munchkin
  • 4,528
  • 7
  • 45
  • 93
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
3 answers

Is there something like a wxpython TextCtrl flush method?

Please consider the following code: import wx import time class MyFrame(wx.Frame): def __init__(self,parent,id,title): wx.Frame.__init__(self,parent,id,title) self.txtu = wx.TextCtrl(self, -1) …
savantas
  • 445
  • 1
  • 4
  • 11
0
votes
1 answer

wxpython for each loop from textctrl split by newline

I have an app which loads the contents of a .txt file into a multiline textctrl, I then want to do a 'for loop' on this textctrl and get each line of text and put it into an array for further manipulation. can it be done like this? or would it be…
jerrythebum
  • 330
  • 1
  • 6
  • 17
0
votes
1 answer

Getting error in Wx TxtCtrl

I am working on Malayalam Text Editor. I need to Bold selected text using text control in WxPython on button click. The working environment is Ubuntu 10.04 and WxPython 2.8. Here is my code: import wx class TestFrame(wx.Frame): def…
user2085779
0
votes
2 answers

wxPython wx.TextCtrl tab width

How to set the Tab width to 4 rather than 8 in wx.TextCtrl? if not possible what is the alternative to use instead of wx.TextCtrl? Note: mytxtCtrl.setDefaultStyle(wx.TextAttr().setTabs([...]) not working!
wtayyeb
  • 1,879
  • 2
  • 18
  • 38
0
votes
1 answer

Python wxTextCtrl move text 4 spaces on tab key down?

I have a wxTextCtrl and I have the cursor move 4 spaces on tab key down. But if I have not typed anything the cursor does not move nor does text when I press tab. self.editor = wx.TextCtrl(splitter, style =…
SC7639
  • 94
  • 1
  • 10
-1
votes
2 answers

How to get text entered in wxTextCtrl and assign it to a string variable?

I have the following GUI created in wxFormBuilder: gui.h: /////////////////////////////////////////////////////////////////////////// // C++ code generated with wxFormBuilder (version Oct 26 2018) // http://www.wxformbuilder.org/ // // PLEASE DO…
etcCoder
  • 1
  • 5
-1
votes
1 answer

wxPython when typing key words in TextCtrl that word changes colour

I have a wxTextCtrl and I would like to be able to when typing certain key words that after finishing typing the word they key word changes colour.
SC7639
  • 94
  • 1
  • 10
1 2 3 4 5 6
7