Ask Your Question

is it possible to show custom HTML contents in a Wing tab?

asked 2022-04-07 12:53:52 -0600

steve1964's avatar

updated 2022-05-05 09:27:38 -0600

I need this capability in Wing Personal I would like to write an extension script that loads my own custom "help" from HTML pages from my menu

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2022-04-08 13:08:18 -0600

It's possible to do this if you go beyond the scripting API, but not easy. We may end up needing to make some changes so it's easier. Note that it is not supported in Wing Personal.

edit flag offensive delete link more


The disabled example script scripts/ illustrates how to add a tool and you could put a QTextBrowser in the panel. See for docs on scripting and extending Wing Pro.

Wingware Support's avatar Wingware Support  ( 2022-04-11 09:08:43 -0600 )edit

answered 2022-04-07 15:52:44 -0600

You can open an .html file and see the source, but Wing currently cannot render html as a web page.

edit flag offensive delete link more


Thanks, but the Wing Help submenus like "Wing Manual" or "Tutorial" are doing so. They open a tab and show HTML rendered pages. Are they special cases?

steve1964's avatar steve1964  ( 2022-04-07 16:27:18 -0600 )edit

Wing uses a qt QTextBrowser widget for its help documentation, which renders a limited subset of html. Wing's scripting support (in Wing Pro but not Wing Personal) does not directly support rendering other documentation, but it would be possible to display a QTextBrowser with a bit of work.

Wingware Support's avatar Wingware Support  ( 2022-04-08 12:50:07 -0600 )edit

I have control on the kind of HTML to display, it's not for generic browsing. So a way to exploit the QTextBrowser widget would be fine for me. But does this imply some code changes on your side or is it something I can do by myself from the scripting API?

steve1964's avatar steve1964  ( 2022-04-08 13:02:28 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2022-04-07 12:53:52 -0600

Seen: 101 times

Last updated: Apr 11 '22