using global variable to pass htmlText

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18708 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Roman Rolinsky
2003-01-13 12:11:26 +00:00
parent a98477bd0b
commit 73fda6b066
2 changed files with 2 additions and 4 deletions

View File

@@ -8,7 +8,6 @@ from xxx import * # xxx imports globals and params
from undo import *
from wxPython.html import wxHtmlWindow
# Properties panel containing notebook
class Panel(wxNotebook):
def __init__(self, parent, id = -1):
@@ -69,10 +68,9 @@ class Panel(wxNotebook):
else: # nothing selected
# If first time, show some help
if g.conf.panic:
import xrced
html = wxHtmlWindow(self.page1, -1, wxDefaultPosition,
wxDefaultSize, wxSUNKEN_BORDER)
html.SetPage(xrced.helpText)
html.SetPage(g.helpText)
sizer.Add(html, 1, wxEXPAND)
g.conf.panic = false
else:

View File

@@ -28,7 +28,7 @@ else:
# 1 adds CMD command to Help menu
debug = 0
helpText = """\
g.helpText = """\
<HTML><H2>Welcome to XRCed!</H2><H3><font color="green">DON'T PANIC :)</font></H3>
To start select tree root, then popup menu with your right mouse button,
select "Append Child", and then any command.<P>