TextCtrl problem, with sample code and screenshot

Please see the attached sample code and screenshot. I've never seen a simple TextCtrl do this before, and it sure feels like a bug.

Any suggestions on how I can get it to show the whole line rather than just the last half?

I'm using wxPython 3.0.0 Classic on Win7 x64 with Py 2.7.6 x32.

Thanks,
Michael

SnapCrab_NoName_2014-2-27_15-43-41_No-00.png

sample.py (1.16 KB)

Hi,

···

On Thursday, February 27, 2014 3:48:32 PM UTC-6, Michael Hipp wrote:

Please see the attached sample code and screenshot. I’ve never seen a simple
TextCtrl do this before, and it sure feels like a bug.

Any suggestions on how I can get it to show the whole line rather than just the
last half?

I’m using wxPython 3.0.0 Classic on Win7 x64 with Py 2.7.6 x32.

Thanks,

Michael

I’ve seen that before. Try something like this:

self.tctrl.SetInsertionPoint(0)

Or maybe just setting focus on the text control will make it work correctly.

  • Mike

Call self.Layout() at the end of MainDialog’s init

···

On Thursday, February 27, 2014 9:48:32 PM UTC, Michael Hipp wrote:

Please see the attached sample code and screenshot. I’ve never seen a simple
TextCtrl do this before, and it sure feels like a bug.

Any suggestions on how I can get it to show the whole line rather than just the
last half?

I’m using wxPython 3.0.0 Classic on Win7 x64 with Py 2.7.6 x32.

Thanks,

Michael

Thank you, that worked.

Michael

···

On 2/27/2014 4:16 PM, Yoriz wrote:

On Thursday, February 27, 2014 9:48:32 PM UTC, Michael Hipp wrote:

    Please see the attached sample code and screenshot. I've never seen a simple
    TextCtrl do this before, and it sure feels like a bug.

    Any suggestions on how I can get it to show the whole line rather than
    just the
    last half?

    I'm using wxPython 3.0.0 Classic on Win7 x64 with Py 2.7.6 x32.

    Thanks,
    Michael

Call self.Layout() at the end of MainDialog's __init__

What does that button (arrow pointing in both left and right directions, separately placed left from the minimize & maximize & close buttons) do in your app?

At first reading I had not the slightest idea what you were talking about ... :slight_smile:

But it's a button added by TeamViewer that says "share this window with a remote user", it's not part of my wx program. Teamviewer is an excellent cross-platform remote access solution.

Michael

···

On 2/27/2014 3:48 PM, Michael Hipp wrote:

Please see the attached sample code and screenshot. I've never seen a
simple TextCtrl do this before, and it sure feels like a bug.

Any suggestions on how I can get it to show the whole line rather than
just the last half?

I'm using wxPython 3.0.0 Classic on Win7 x64 with Py 2.7.6 x32.