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

How determining current wxTextCoord line in wxTextCtrl (StyledText etc.)

When I push button or key i modyfy a text inside wxTextCtrl. For example I read line and meyby modyfing it or put it on the bottom of text. How propertly read ascii text from current position and modyfing it not using disc. How determining which…
0
votes
1 answer

Changing attributes in other panels

Here is the code I am working on: import wx import wx.aui import wx.lib.scrolledpanel from parse import * import settings parser=parse() ID_OPEN = 101 ID_SAVE = 102 ID_QUIT = 103 factors = ['Power','Fuel','Pot Water','Bottled Water','Storage…
0
votes
1 answer

wxSlider updating wxTextCtrl and Vice Versa

I have multiple widgets in a form like so: self.sl_qZone1 = wx.Slider(self, -1, 50, integer=True, 0, 100, size=(sliderWidthHeight), style=wx.SL_HORIZONTAL) self.tc_qZone1 = wx.TextCtrl(panel, -1, 50, (0,0), style=wx.TE_CENTER) I have some…
chow
  • 484
  • 2
  • 8
  • 21
0
votes
1 answer

The transparent static text in wxwidgets 3.0.2 is showing junk values before initialization?

I have few custom controls which show static text. These controls use to show zeros(0) in wx 2.8 version , now the same controls are showing some junk values when the application is launch and before its initialization. All these values in text…
StraightCirle
  • 182
  • 2
  • 12
0
votes
2 answers

Event when cursor changes position wxWidgets Text Box?

In wxWidgets, how can I detect when the cursor position changed in a wxTextCtrl? I looked at the manual and couldn't find any event relating to it, but maybe there is another way I've missed.
Brad
  • 223
  • 1
  • 4
  • 10
0
votes
1 answer

wxTextCtrl per class handler overrides per-instance handler

wxWidgets 3.0.2, MSVC 2013. The essence of this question is: how does one override the default file drop handler on a wxTextCtrl? There's a default handler that the superclass installs that I need to override. I am trying to make a wxWidgets text…
Tim
  • 2,708
  • 1
  • 18
  • 32
0
votes
1 answer

wxWidgets: SetHint() on multiline wxTextCtrl and process TAB

Like the title says, is there any way to set hint on a wxTextCtrl that is a multi line text?. I already tried but didn't work. Should I do it manually? Edit: I wanna add this: How can I make the wxTextCtrl lose his focus when TAB key is pressed?
0
votes
1 answer

How modify a lookslike in wxTextCtrl

I need simple editor. I use special symbols. How redefine onPaint or other way what wxTextCtrl show line. For example: My special line have := differen symbol How showing '< a >' in green color and symbol := show a bold '=' (without ':') ideal…
Marko Lustro
  • 173
  • 1
  • 10
0
votes
1 answer

TextCtrl doesn't work properly with CheckBox

I wrote a code to receive some input data from user using both CheckBox and TextCtrl. The problem is when I marked the checkbox and textctrl appears, it accept to receive input data, but won't replace with the default one! import wx class…
Siamak Malek
  • 45
  • 2
  • 11
0
votes
1 answer

wxpython how to print out each element in a list using a for loop and the event is EVT_Button

I Have an empty list which get its value from user's input a[] when I click on ( button) I need to print out the first element in the list and then when the user clicked again on the same button i need the second element in the list to be…
0
votes
1 answer

How do I make wxAcceleratorTable work with wxFrame and wxTextCtrl?

I have a wxTextControl and a wxButton on a wxFrame, and I want Shift+Enter to cause the button to be clicked. The wxAcceleratorTable documentation says that this is possible: "For example, you can use an accelerator table to enable a dialog with a…
Alex Henrie
  • 744
  • 1
  • 6
  • 17
0
votes
1 answer

set text alignment of rich text ctrl

how to align text right and center because wx.TE_RIGHT and wx.TE_CENTER is not working in the code below import wx import wx.richtext as rtc class test(wx.Dialog): def __init__(self, *args, **kwds): wx.Dialog.__init__(self, *args,…
user2980054
  • 453
  • 1
  • 7
  • 21
0
votes
1 answer

text control allowing to use bitmaps and text together

I am trying to create chat application that support smylies,and since I am using textctrl to show text messages from users ,I want find a way to add smylies icons along with text just like any known chat application such as yahoo messanger or…
user2980054
  • 453
  • 1
  • 7
  • 21
0
votes
1 answer

Get user input in WxPython

I want to make a program with a gui where you type something down into a text box and it does that task. A non gui example that I have is this: input = input(""); def chat(): if "hello" in input: print "hi" while True: …
Khanrad
  • 129
  • 1
  • 1
  • 10
0
votes
2 answers

wxTextCtrl code to detect numbers only in Python

I have constructed a wxTextCtrl and want to return true if ONLY digits are entered by the user. Here is my Python code: @staticmethod def isAllDigits(s): for char in list(s): if not char.isdigit(): return False …
Philip McQuitty
  • 1,077
  • 9
  • 25
  • 36