473,609 Members | 2,103 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help with RichTextCtrl.Re fresh() and self.Layout()

2 New Member
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 1335
thebigonions
2 New Member
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
1443
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 a grid that contains data from a MySQL database. Here is the code (sorry, it's quite long): #!/usr/bin/env python import wx
3
1203
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 something bugs me. Here is the link: http://builder.com.com/5100-6371_14-5160911.html
7
2833
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 found a bug that I can't figure out (believe me; I've tried everything and asked for help several times on the IRC-channel). The updateMsg() and iMsg() takes a list of message-lines as argument (or process a string to a list), and it'll output...
34
1944
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 using positioning to layout all the elements and I'm running into the following problems: 1. I can't get the left and right columns to align at the top of their container div 2. In Safari, the footer div disappears 3. In IE it's just a total mess ...
1
1123
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, When I refresh the page users keep incrementing which in turn get added to the database, Please help me in showing the correct users not the repeated ones. thanks!!!!
3
1269
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 several tabs. In each tab I have different panels in wich I wan't to display some images, button, etc. The problem is, when i run the project, the components I added aren't displayed. This is probably a refresh/paint problem because when I...
8
1799
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 problem is Background image section is coming at top and menu comes just under the banner. I want that menu (navigation) comes at left position and in the same line banner comes at right position. Here is URL. kindly help me out to sort...
0
1482
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 is deally how the images will appear no matter what the broswer width is, the images that fall outside the width would merely not be shown. Screen2 shows the page when the broswer width has been decreased past a certain point.
3
2412
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 Full_Repaint option, but got no where. The method I am using, to add and (hopefully) refresh the frame, Add_Canvas(), starts at line 50. canvas_List = class MainWindow(wx.Frame): def __init__(self, parent = None, id = -1, title = "PyOpenGL...
0
8109
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8035
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8188
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6034
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4002
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4059
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2502
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1630
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1366
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.