Phoenix icon indicating copy to clipboard operation
Phoenix copied to clipboard

TextCtrl bug

Open racookier opened this issue 8 years ago • 6 comments

Operating system: Kubuntu 17.10 wxPython version: 4.0.0b2 Stock or custom build: Stock Python version: 2.7.14 Stock or custom build: Stock

Description of the problem: Controls does not accept special keys (I mean arrows, TAB, Backspace, Home etc.) by pressing that keys will produce a freeze and eventually a crash.

This can be checked with wxpython demo

# Put code sample here

racookier avatar Dec 13 '17 17:12 racookier

Please provide a small sample application that demonstrates the problem. Also did you use one of the pre-built 4.0.0b2 wheel files (from extras.wxpython.org) or did pip build it from source?

RobinD42 avatar Dec 29 '17 21:12 RobinD42

Hi there, I'm using python 3.6.4 and downloaded and installed wxPython 4.0.1 with pip. I have the same problem. It only happens on my Desktop running GNU/Linux, Triskel 7.0 distribution. When I run some wxPython code with textCtrl, and even the demo.py, the controls buttons (arrow, TAB, Backspace, Home, etc.) do not seem to work with text control. Another think that I noticed, when this happens, is that when I am pressing the control buttons, e.g. TAB, the usage of the processor goes up, getting to 50% or more. When I switch to another application the processor usage goes to normal and stays there until I go back to the wxpython application and type the control buttons in a textCtrl widget.

hfreitas310 avatar Mar 21 '18 11:03 hfreitas310

I can also verify this bug. Running Python 3.6.6 with wxPython 4.0.3 and Linux Mint 19.

johanols avatar Oct 19 '18 21:10 johanols

I can solve my problem changing default shortcuts, i have to change default shortcut of Undo and Cut (Ctrl+Z and Ctrl+X) after make this change wxpython textctrl works fine.

TPOS --- The Power Of Silence... No More To Say.

On Friday, October 19, 2018, 4:17:36 PM GMT-5, Johan Olsson <[email protected]> wrote:  

I can also verify this bug. Running Python 3.6.6 with wxPython 4.0.3 and Linux Mint 19.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

racookier avatar Oct 20 '18 22:10 racookier

@racookier @hfreitas310 @swt2c is this still relevant with the current wxPython release? I don’t have a Linus machine but I wonder how many wxPython users could live with an issue like this on such a common widget like wx.TextCtrl…

infinity77 avatar Sep 07 '24 17:09 infinity77

I also meet this ancient bug on wxPython 4.2.2 (pip), Python 3.11.2, Debian 12.

============================================

After trying a lot of times in different environments, I found it works well in a normal terminal window, but when you run your program in VS Code the bug appears. I don't know whether VS Code or wxPython causes the bug, but that's the truth!

Wilsonjnliu avatar Nov 08 '24 15:11 Wilsonjnliu