473,320 Members | 1,580 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Help with RichTextCtrl.Refresh() and self.Layout()

Hello,
I have a RichTextCtrl on my panel that I am trying to show some rich text in. I have read in the rich text in HTML format. I am using a MVC format so my view (RichTextCtrl) is in separate code from my controller. In my controller I am trying:

Expand|Select|Wrap|Line Numbers
  1. out = StringIO()
  2. handler = rt.RichTextXMLHandler()
  3. buffer = self.view.rtEditor.GetBuffer()
  4. buffer.AddHandler(handler)
  5. out.wirte(content)
  6. out.seek(0)
  7. handler.LoadStream(buffer, out)
  8. self.view.rtEditor.Refresh()
  9. self.view.Layout()
My questions are: What does the Refresh() do? And why can't I find any documentation on it? What does Layout() do? And why can't I find any documentation on it? And most importantly, why doesn't my text show up in my RichTextCtrl? I have tried this in a python app without MVC and it works fine.

Thank you.
Apr 28 '14 #1
1 1323
Ok, the problem is that I was saving my text as HTML. I changed it to save as XML, now I can read it in as Rich Text.
Apr 29 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: dimitri pater | last post by:
Hello, To be honest, I also posted this on the wxPython mailing list. But I thought maybe some of you on the python list can help me... I am trying to refresh a pane of a notebook that contains...
3
by: varois83 | last post by:
Hi I am heavily experiencing with layouts at the moments as part of learning CSS. The following link has a tutorial for a 3 columns layout with header and footer using floats. It is simple but...
7
by: Gasten | last post by:
Hello. The last weeks I've been coding a roguelike (you know, like nethack) in python using the nCurses library. Some week ago I ran into a problem: When I made the object for messagebar-output, I...
34
by: GluteHam | last post by:
Thanks in advance to anyone who can help. I'm working on a somewhat simple layout and I want to make sure it's as accessible as possible to people with disabilities (screen readers, etc.) I'm...
1
by: zombie212 | last post by:
I have devoloped a page in asp.net with datagrid with code behind in VB, to show the result of SP_ who2 ( SQL Server System stored proc). Now I have also added a refresh button to update the page,...
3
by: c0elh0 | last post by:
Hello all, I'm new to this forum and to c# too, so there are some technical questions I'm not familiar to in c#. I'm building a program based on a FORM controled by another pc (like a server) with...
8
by: neovantage | last post by:
Hey all, I have alignment problem in layout. I am using slideshow technology. It shows images in background and text over the background image once we take mouse over the link buttons. Now what my...
0
by: thisguyal | last post by:
Hi, I am trying to alter the CSS of my site so that content does not get displaced when the browser window size is decereased. Screen1 shows the page when the browser size is wide enough. This...
3
Jory R Ferrell
by: Jory R Ferrell | last post by:
I am using wxPython. I need to be able to add and remove panels/canvases on demand, but I don't know how to refresh the entire parent frame (the base starting window). I tried fooling with the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.