Questions tagged [wxhtmlwindow]

20 questions
3
votes
1 answer

How to set color of link in wxWidgets wxHtmlWindow?

The wxWidgets library includes a simple HTML parser and viewer, which I'm trying to use to display some simple HTML. I'd like to make certain links (the ones that go to items that don't yet exist) a different color, or otherwise indicate that they…
Head Geek
  • 38,128
  • 22
  • 77
  • 87
2
votes
2 answers

How to load HTML file with external link to CSS file with wxPython?

I'm trying to load an Html file with wx.html.HtmlWindow. The Html file is linked to an external style sheet (CSS) file. The problem is the Html window only shows the plain Html file without styling (colors, fonts, etc.) How can I solve this…
Sevda
  • 23
  • 4
2
votes
1 answer

Is it possible to specify an image in a wxHtmlWindow that is contained within the executable?

I would like my executable to be self-contained. However, the wxHtmlWindow uses an image and it would be nice if the image could be stored inside the executable. Can this be done, and if so how?
Nathan Osman
  • 71,149
  • 71
  • 256
  • 361
2
votes
2 answers

loading https page into wx.html.HTMLWindow

I am trying to load a https url into an HTMLWindow import wx import wx.html class MyHtmlFrame(wx.Frame): def __init__(self, parent, title): wx.Frame.__init__(self, parent, -1, title, size=(600,400)) html =…
Joran Beasley
  • 110,522
  • 12
  • 160
  • 179
2
votes
0 answers

How to do exception handling for wx.html.HtmlWindow.LoadPage?

I created a static HTML window in my wxPython application with: wx.html.HtmlWindow.LoadPage(url) It works well, and displays the HTML window in the application. I am looking for a way to do exception handling for it, in case the website or Internet…
1
vote
1 answer

Hyperlinks in wx.html-How to navigate inside the same html page

I have create in wxpython a menu with a help menuitem,using wx.html. I use the follow code: class AboutDlg(wx.Frame): def __init__(self, parent): wx.Frame.__init__(self, parent, wx.ID_ANY, title="About", size=(400,400)) …
TLSK
  • 275
  • 1
  • 6
  • 25
1
vote
1 answer

How to append content to wxHtmlWindow?

I know SetPage() sets the content of wxHtmlWindow. In my application, I will be appending more content frequently in a fashion similar to a log file, so I'd like to avoid calling SetPage() repeatedly to avoid unnecessary CPU cycles being wasted on…
1
vote
1 answer

wxHtmlWindow LoadFile does not display in wxFrame

I am developing on Ubuntu Linux using wxWidgets and I'm having a problem displaying an html file on the file system within a wxFrame. The wxFrame pops up but there is no HTML content in the window. Here is a snippet of my OnInit()…
Ankur Shah
  • 125
  • 12
1
vote
4 answers

wxPython - HtmlWindow freezes when loading images

I am writing a chatroom client in wxPython in which there are 3 wx.HtmlWindows for each chatroom on a notebook page: one for the messages, one for the title of the room, and one for the topic of the room (two similar things) The program works fine,…
Blazer
  • 337
  • 2
  • 11
1
vote
2 answers

wxPython HtmlWindow not rendering HTML very good

I have problems rendering HTML in wxPython's HtmlWindow. It looks like, it doesn't load .css or image files!. But maybe there is a way to fix it? I know of WebView but it is not available on Linux yet. EDIT There is a way to do that using wxPython…
JadedTuna
  • 1,783
  • 2
  • 18
  • 32
0
votes
1 answer

How to enable autoscrolling to bottom for wx.html.HtmlWindow

I am using wxPython and want my HtmlWindow to scroll down automatically after adding new content. I am using it as a log window inside my app. Unfortunately, I am struggling to get it working. Here is my sample with lacks the functionality: import…
Robert_Jordan
  • 256
  • 4
  • 13
0
votes
1 answer

How to preserve page position in the wx.html.HtmlWindow after link clicked?

I have a wx python application with wx.html.HtmlWindow window: class MyHtmlWindow(wx.html.HtmlWindow): Method SetPage is used to update html content on the window: def OpenURL(self, url, save_scroll_pos=True): def callback(src, url,…
Veselin Penev
  • 77
  • 1
  • 5
0
votes
0 answers

wxpython htmlWindow shows

and

tags italicised
When using wx.htmlWindow in a standard application in python, using self.htmlwin.SetPage("

This text is italicised

This text is also italicised
") these two tags return an italicised result, however, this being the only code, it must…
J-Cake
  • 1,526
  • 1
  • 15
  • 35

0
votes
1 answer

wxPython - wxHtmlWindow, can the scrollbar be kept at the veyr bottom at all times?

I am working on a chatroom client and am using an HTML window to process things like images and html tags and formatting. I am having trouble finding out how to make the scrollbar stay at the bottom as messages are added to the window (every message…
Blazer
  • 337
  • 2
  • 11
0
votes
1 answer

HtmlWindow doesn't display page in wxpython notebook layout

I have a project set up as a notebook layout using wxpython. I am trying to create a help panel. The HtmlWindow object doesn't display the html page on the panel. No errors are displayed and a call to HtmlWindow.GetOpenedPage() returns the page…
Doug
  • 1
1
2