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
2
votes
1 answer

wxPython: binding wx.EVT_CHAR_HOOK disables TextCtrl backspace

I have a wx.TextCtrl and I want to be able to type in it, but also detect key presses such as UP, DOWN, RETURN, ESC. So I binded wx.EVT_KEY_DOWN to recognize any key press, and wx.EVT_CHAR_HOOK to do the same thing even when TextCtrl has focus.…
James the Great
  • 941
  • 2
  • 14
  • 46
2
votes
2 answers

Capturing stdout from an imported module in wxpython and sending it to a textctrl, without blocking the GUI

There are alot of very similar questions to this but I can't find one that applies specifically to what I'm trying to do. I have a simulation (written in SimPy) that I'm writing a GUI for, the main output of the simulation is text - to the console…
1
vote
1 answer

WxPython - displaying the terminal output upto a specific line

Currently I am able to display my python console output in wxPython GUI. Below is the code for it: - class RedirectText(object): def __init__(self,aWxTextCtrl): self.out = aWxTextCtrl def write(self,string): …
10may
  • 311
  • 1
  • 2
  • 10
1
vote
1 answer

Minimal solution to use wxWidgets: wxTextControl to emulate a C++ std::cin and std::cin(getline) stream

I have transcribed a c++ console app to GUI using wxWidgets. Most of my functions were written for the commandline flow. I am creating handles and additional code to interface GUI with the functions. I have emulated a console for output stream,…
user5927645
1
vote
1 answer

wx.EVT_KEY_DOWN - evt.skip() doesn't work

I created a gui in wxpython. I tried to use wx.EVT_KEY_DOWN. When I press a key, I want to know if the key changed the messageTxt (It was't a key such as right, shift, alt etc...). I prints the messageTxt before and after the evt.Skip() but it…
Yuval Sharon
  • 159
  • 8
1
vote
2 answers

wxPython multiline password field

In wxPython, the password style works only for single line text controls. I need a multiline password field. I've thought of two ways: I've created a font with a single glyph (solid dot) in every code point. However, I can understand users not…
Den
  • 197
  • 1
  • 10
1
vote
1 answer

wxpython RichtextCtrl event bindings on buttons/images

Just wondering whether there is any provision/method to bind clicks on images/(or include a button) to result into some events. Also is there any kind of way to draw a StaticLine kind of thing in a RichTextCtrl in wxPython.
SDK
  • 79
  • 2
  • 6
1
vote
1 answer

AttributeError: 'TextCtrl' object has no attribute 'ClearAll

I have both textctrl and listctrl in my Parent frame. I want to erase both the teletext and listctrl in one click. so when the reset button is clicked it should erase all text and list.How do i accomplish this? I am trying this but that gives me…
anon_particle
  • 337
  • 1
  • 4
  • 16
1
vote
1 answer

Python TextCtrl search and highlight functionality

I have a TextCtrl which contains various log data, I also have a EditText field whereby the user can search for a string to find, and then click the Find button to locate and highlight the word if it is found in the logs. Your standard…
Borgme
  • 55
  • 6
1
vote
1 answer

update label while user is typing in textfield in python

I'm looking for a way to show the text that the user is typing in a label or a readonly textctrl but without pushing a button. Is this possible? EDIT: Using wxpython
VeVi
  • 281
  • 2
  • 7
  • 17
1
vote
1 answer

Custom controls in wxformbuilder

I am currently having a issue with TextCtrlAutoComplete (https://wiki.wxpython.org/TextCtrlAutoComplete) and wxFormBuilder. I would like to use the Autocomplete version but i have no way of telling wxFormbuilder to use a custom control as far as i…
Pimmetje
  • 133
  • 2
  • 11
1
vote
1 answer

wxWidgets Transparent wxTextCtrl

I'm trying to create a custom transparent wxTextCtrl by driving from it and drawing the text myself as follow: BEGIN_EVENT_TABLE(TextLayer, wxTextCtrl) EVT_PAINT(TextLayer::OnPaint) …
Abanoub
  • 3,623
  • 16
  • 66
  • 104
1
vote
1 answer

wxpython textctrl autosize to fit text

Very simple question: Ive got a wxpython textctrl box to which i want to display a long text. The text may contain newlines. may not. No matter what i do, the box always seems to be a little short. ive gone to the extent of getting the font size…
pyNewbie
  • 155
  • 1
  • 2
  • 10
1
vote
2 answers

Is there any way to completely remove the focus border of a wxTextCtrl object on OSX?

I am building a project in OSX (Yosemite) with wxWidgets 3.0.2. I can remove a blue border around the wxTextCtrl window by using wxBORDER_NONE. But when I put it in a sizer, it has a 3 pixel grey border that I just can't get rid of. What's the point…
DaleyPaley
  • 201
  • 2
  • 11
1
vote
1 answer

wxTextCtrl - set text wrapping runtime

I intend to provide a text wrapping functionality option to my wxPython-based application to be switched ON and OFF from menu (like, say notepad++ allows it). I have a wxTextCtrl and read in wxWidgets documentation that I have to manipulate the…
Nikita Vorontsov
  • 194
  • 2
  • 15