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 Validators in Frames/Panel not working

I'm pretty new to python and wx, I'm making an application and I've made some forms and stuff on wxPython trough frames and panel. Now I want to validate the fields, so i have to validate the TextCtrl, but I'm having so much troubles . I've read a…
0
votes
1 answer

Making a Ctrl-F Feature for wx.TextCtrl

I'm attempting to make a Ctrl+F (Find) feature for a wx.TextCtrl widget. However I'm unsure of how to highlight certain indexes/phrases. How would I go about this?
rectangletangle
  • 50,393
  • 94
  • 205
  • 275
0
votes
1 answer

wx.TreeCtrl item

I'm trying to use a TreeCtrl to represent a folder structure. For each folder I need to know it's absolute path and name. I'm currently doing something like this: self.root = self.tree.AddRoot(project.name) self.tree.SetPyData(self.root,…
Bogdan
  • 8,017
  • 6
  • 48
  • 64
0
votes
1 answer

How to store an input (TextCtrl) into a variable, process it through some code-lines and show the outputs in another window in wxPython?

I built a script that find a book by pertinence (output) given a quote (input). Now I want to create the GUI of this script and I decided to use wxPython. I would like a basic GUI, where the user can write the phrase in a text bar, then push a…
0
votes
1 answer

WxPython adding text in a specific place

In the GUI that I make (With wxpython), I need to append text in a specific place of the TextCtrl (I can change it to other textEntry if it is needed). for example I have this text: Yuval is a surfer. He likes (HERE) to go to the beach. I want to…
0
votes
1 answer

What is the best way to invoke a onscreen keyboard when cursor placed on a wxTextCtrl?

I'm trying to design a GUI touch screen application using wxWidgets(version 3.0.4). The touch screen is working fine. I need to use the on screen keyboard to populate a text box(wxTextCtrl). I've done some searching and I dont find any setfocus or…
0
votes
1 answer

Displaying real time output to wx.TextCtrl

I'm currently in the process of building a wi-fi packet capture utility in Ubuntu using the modules wxPython, Pcapy and impacket. I have created the GUI in wxPython and the capture code referencing the other modules, however combining the two is…
0
votes
1 answer

trouble getting wx.TextCtrl contents to re-center on resize

I have a TextCtrl with style=wx.TE_CENTRE, and I want/expect its contents to remain centered when I resize the TextCtrl. However, the text stays on the left side of the TextCtrl. import wx class MyApp(wx.App): def OnInit(self): frame =…
0
votes
1 answer

Getting a numerical value out of wxTextCtrl

I'm learning wxWidgets, not wxPython, actual C++ library. I have ran into trouble to bind a double variable with wxTextCtrl. As far as I can understand it should be done through wxValidator template. Here an example code, in which I want to keep in…
rth
  • 2,946
  • 1
  • 22
  • 27
0
votes
1 answer

Wxpython: How to use different border color for Search box

I am using wx.SearchCtrl and I need a red border around the search field. In the documentation, I could not find anything to do this easily. How can I do this?
user1670773
  • 967
  • 4
  • 12
  • 23
0
votes
2 answers

After the EVT_KILL_FOCUS event is executed, why does the blinking cursor in TextCtrl disappear?

I have a TextCtrl that has an EVT_KILL_FOCUS event that I use to validate the contents of the field, alerting the user when the value is wrong. After opening the MessageBox, I clear the field and i set the focus to the field that I left validate…
user2581941
0
votes
1 answer

Enable button when wx.TextCtrl is clicked in

I have a dialog box (with multiple editable text fields and buttons) and want to activate one of buttons when any one of text field boxes is clicked in. Like following is with default value of 0.56 and once user click in that box, a separate button…
Ibe
  • 5,615
  • 7
  • 32
  • 45
0
votes
1 answer

Set InsertionPoint to end of current line in wxPython wx.TextCtrl

Ok, so I know I can do: curPos = self.LogWindow.GetInsertionPoint lineNum = self.LogWindow.GetRange( 0, self.LogWindow.GetInsertionPoint() ).split("\n") lineText = self.LogWindow.GetLineText(lineNum) But how can I set the InsertionPoint to the end…
Montmons
  • 1,416
  • 13
  • 44
0
votes
1 answer

IpAddrCtrl is broken on GTK

I have an IpAddrCtrl element from wx.lib.masked in my simple test: import wx import wx.lib.masked as masked class MainWindow(wx.Frame): def __init__(self, parent, title): wx.Frame.__init__(self, parent, title=title, size=(500,500)) …
jubnzv
  • 1,526
  • 2
  • 8
  • 20
0
votes
1 answer

How get key signal and not deleting it in wxTextCtrl

In initialize functions on my widgets i have: Connect(wxEVT_TEXT_ENTER, wxCommandEventHandler(MyTextCtrl::EnterClick)); next I have void MyTextCtrl::EnterClick(wxCommandEvent &event) { wxPrintf(wxT("enter\n"));} trouble is with signal. the string…
Janek Dafe
  • 21
  • 1