Questions tagged [wx.textctrl]

wx.textctrl refers to wxTextCtrl, which is a text control in wxWidgets that allows text to be displayed and edited

This tag refers to wxTextCtrl, a text control in that allows text to be displayed and edited.

32 questions
1
vote
2 answers

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…
Jon Cage
  • 36,366
  • 38
  • 137
  • 215
1
vote
1 answer

wx.TextCtrl field in menubar

In the following example I encoded a filter for the menu list with recovering option. It is placed in the panel. My question is whether is it possible to place wx.TextCtrl field in menubar? Here is the approximation code. Maybe there is even…
0
votes
1 answer

wx.textCtrl wx.TE_MULTILINE destroy text.hint python

I have strange behavior with text.ctrl. I would like to have textCtrl to set some text. This is connected to database. When database is empty on this textCtrl I would like to show hint " Place text bla,la ..". But when exists some data I would like…
Robert M
  • 21
  • 2
0
votes
0 answers

redirect sys.stdout to a wx.TextCtrl widget

I'm trying to redirect the sys.stdout stream to a wx.TextCtrl widget. I've managed to get the stream to redirect but apparently some messages get writted twice. Hopefully somebody can explain this to me. I'm using python 2.7.5 with wx 2.8.12.1,…
JustMe
  • 237
  • 4
  • 7
0
votes
1 answer

Closing wxpython application hangs gui

I this application which has a long running task via ssh, which gets the stdout then prints this to a wx.TextCtrl, all this works fine. The problem I have is being able to quit the application, currently when I do the gui hangs. The long sunning ssh…
speedyrazor
  • 3,127
  • 7
  • 33
  • 51
0
votes
1 answer

wx.TextCtrl GetLineLength wx.CallAfter not working

I am outputting the stderr to a wx.TextCtrl, after 10 lines I want to delete the first line so there is only ever a maximum of 10 lines in my wx.TextCtrl window. I have a python script which is using multiple threads and classes. I just can't for…
speedyrazor
  • 3,127
  • 7
  • 33
  • 51
0
votes
1 answer

python Popen stderr=PIPE 6000+ lines causes hang

I am running a command line application via Popen in OSX which produces many lines of command line readout, passing this via stderr to my wx.TextCtrl window. I am using threads and classes and everything has been working fine, until I run something…
speedyrazor
  • 3,127
  • 7
  • 33
  • 51
0
votes
1 answer

wxPython SetStyle Not Working

I'm using wx.TextCtrl.SetStyle() in my code, but it's changing the style of all the text! Here's my code: # Get all the words in my TextCtrl words = self.GetValue().split(" ") # Find out what the farthest uneditable word is. farthest_uneditable =…
Thomas Hobohm
  • 645
  • 4
  • 9
0
votes
1 answer

AppendText to wx.TextCtrl in another Tabbed Panel - wxpython

I have an app with 3 tabbed panels. I am currently sending AppendText to wx.TextCtrl in the same panel wx.CallAfter(self.running_log1.AppendText, line) but also want to send AppendText to wx.TextCtrl in another tabbed panel, RunningPane2,…
speedyrazor
  • 3,127
  • 7
  • 33
  • 51
0
votes
1 answer

Wxpython drag and drop folder path, Popen not working with spaces on Windows

I have the below code which allows the user to drag and drop a folder to get the folder path. I then take this folder path and use it to pass through to a command line application in Windows using Popen. This all works fine except if there are…
speedyrazor
  • 3,127
  • 7
  • 33
  • 51
0
votes
2 answers

wxPython: TextCtrl in pop up window

I have created a pop up window, but the TextCtrl is not fully expanded to fill up the window. It works great if I use StaticText instead, (but if content too large then I would need the scroll bar, that is why I am using TextCtrl now). Please…
James the Great
  • 941
  • 2
  • 14
  • 46
0
votes
3 answers

.GetValue() is not working for TextCtrl in this particular case

hey folks using Python i have bind the radio button and when that's clicked the TextCtrl is called upon but after I type in TextCtrl i am not able to get the string that has been entered, My code goes like this def A(self,event): radiobut =…
G.Jan
  • 132
  • 2
  • 10
0
votes
1 answer

wx.TextCtrl use drag and drop folder to get file path

I currently have a working app using wx.TextCtrl, where I open a select folder dialogue box. I would like to add drag and drop so I could just drag and drop a folder to get the folder path, so I could have both options available to the user. Here is…
speedyrazor
  • 3,127
  • 7
  • 33
  • 51
0
votes
1 answer

wxpython wx.TextCtr not sizing while using wx.TE_MULTILINE

using the below code I have two panels, which switch via the menu. I have two problems: The line self.txtfilein1 = wx.TextCtrl(self, -1, pos=(35, 112), size=(300, 165), style = wx.TE_MULTILINE) does not seem to pay attention to the size=(300, 165),…
speedyrazor
  • 3,127
  • 7
  • 33
  • 51
0
votes
1 answer

How to kill previously ran methods called by an event

Dear members of our community, The following is a simple wx.app with only a text control. When this text control is edited a large process starts. If one edits the control slowly, the editing feels normal. However, if the human is a fast typer, the…
mm_
  • 1,566
  • 2
  • 18
  • 37