Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7537611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:53:54+00:00 2026-05-30T06:53:54+00:00

I have a text (with several lines) that I need to put in a

  • 0

I have a text (with several lines) that I need to put in a wxPython TextCtrl.
The problem is that some of these lines are with unprintable characters.

My solution to that was to use AppendText, and try-catch the problematic line.

The current problem is that for a large number of lines it takes a lot of time (relative to preparing a large string with all the lines and using SetValue)

Is there a way to append lines of text to TextCtrl “silently” (so it will not redraw after each line)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T06:53:55+00:00Added an answer on May 30, 2026 at 6:53 am

    Since wxTextCtrl derives from wxWindow, it inherits its Freeze() and Thaw() methods.

    Freeze() will lock screen updates for the control, and Thaw() will re-enable them. The documentation actually mentions your very use case, albeit with a caveat:

    This method is useful for visual appearance optimization (for example,
    it is a good idea to use it before doing many large text insertions in
    a row into a wxTextCtrl under wxGTK) but is not implemented on all
    platforms nor for all controls so it is mostly just a hint to
    wxWidgets and not a mandatory directive.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string that covers several lines. I need to extract the text
i need to have an ascii file that have several lines in it for
I have a text file that contains very long lines. I need one piece
I have several strings in the rough form: [some text] [some number] [some more
I have a series of large, flat text files that I need to parse
I have a LARGE text file that I am needing to pull several values
I have a text file with several lines in the following format: gatename #outputs
I have several csv files that I need to transfer over to mdb format.
VB 2008. I have several text boxes on a form and I want each
I have a simple text file with several thousands of words, each in its

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.