From 73fda6b066fff2604114a782983e61831f031e4d Mon Sep 17 00:00:00 2001 From: Roman Rolinsky Date: Mon, 13 Jan 2003 12:11:26 +0000 Subject: [PATCH] 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 --- wxPython/wxPython/tools/XRCed/panel.py | 4 +--- wxPython/wxPython/tools/XRCed/xrced.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/wxPython/wxPython/tools/XRCed/panel.py b/wxPython/wxPython/tools/XRCed/panel.py index 36f391e1d7..0da807e754 100644 --- a/wxPython/wxPython/tools/XRCed/panel.py +++ b/wxPython/wxPython/tools/XRCed/panel.py @@ -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: diff --git a/wxPython/wxPython/tools/XRCed/xrced.py b/wxPython/wxPython/tools/XRCed/xrced.py index 125154994d..f7e19dbbc5 100644 --- a/wxPython/wxPython/tools/XRCed/xrced.py +++ b/wxPython/wxPython/tools/XRCed/xrced.py @@ -28,7 +28,7 @@ else: # 1 adds CMD command to Help menu debug = 0 -helpText = """\ +g.helpText = """\

Welcome to XRCed!

DON'T PANIC :)

To start select tree root, then popup menu with your right mouse button, select "Append Child", and then any command.