[GRASS-SVN] r38833 - in grass/trunk/gui/wxpython: . gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Aug 22 12:33:38 EDT 2009
Author: martinl
Date: 2009-08-22 12:33:37 -0400 (Sat, 22 Aug 2009)
New Revision: 38833
Added:
grass/trunk/gui/wxpython/gui_modules/help.py
Modified:
grass/trunk/gui/wxpython/gis_set.py
Log:
wxGUI: HelpWindow moved to help.py
Modified: grass/trunk/gui/wxpython/gis_set.py
===================================================================
--- grass/trunk/gui/wxpython/gis_set.py 2009-08-22 07:48:03 UTC (rev 38832)
+++ grass/trunk/gui/wxpython/gis_set.py 2009-08-22 16:33:37 UTC (rev 38833)
@@ -8,7 +8,6 @@
Classes:
- GRASSStartup
- - HelpWindow
- StartUp
(C) 2006-2009 by the GRASS Development Team
@@ -34,6 +33,8 @@
if not os.getenv("GRASS_WXBUNDLED"):
globalvar.CheckForWx()
+from gui_modules import help
+
import wx
import wx.html
import wx.lib.rcsizer as rcs
@@ -720,10 +721,10 @@
# help text in lib/init/helptext.html
file=os.path.join(self.gisbase, "docs", "html", "helptext.html")
- helpFrame = HelpWindow(parent=self, id=wx.ID_ANY,
- title=_("GRASS Quickstart"),
- size=(640, 480),
- file=file)
+ helpFrame = help.HelpWindow(parent=self, id=wx.ID_ANY,
+ title=_("GRASS Quickstart"),
+ size=(640, 480),
+ file=file)
helpFrame.Show(True)
event.Skip()
@@ -733,31 +734,6 @@
event.Skip()
sys.exit(2)
-class HelpWindow(wx.Frame):
- """!GRASS Quickstart help window"""
- def __init__(self, parent, id, title, size, file):
-
- wx.Frame.__init__(self, parent=parent, id=id, title=title, size=size)
-
- sizer = wx.BoxSizer(wx.VERTICAL)
-
- # text
- helpFrame = wx.html.HtmlWindow(parent=self, id=wx.ID_ANY)
- helpFrame.SetStandardFonts (size = 10)
- helpFrame.SetBorders(10)
- wx.InitAllImageHandlers()
-
- helpFrame.LoadFile(file)
- self.Ok = True
-
- sizer.Add(item=helpFrame, proportion=1, flag=wx.EXPAND)
-
- self.SetAutoLayout(True)
- self.SetSizer(sizer)
- # sizer.Fit(self)
- # sizer.SetSizeHints(self)
- self.Layout()
-
class GListBox(wx.ListCtrl, listmix.ListCtrlAutoWidthMixin):
"""!Use wx.ListCtrl instead of wx.ListBox, different style for
non-selectable items (e.g. mapsets with denied permission)"""
Added: grass/trunk/gui/wxpython/gui_modules/help.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/help.py (rev 0)
+++ grass/trunk/gui/wxpython/gui_modules/help.py 2009-08-22 16:33:37 UTC (rev 38833)
@@ -0,0 +1,45 @@
+"""!
+ at package help.py
+
+ at brief Help window
+
+ at todo Needs improvements...
+
+Classes:
+ - HelpWindow
+
+(C) 2008-2009 by the GRASS Development Team
+
+This program is free software under the GNU General Public
+License (>=v2). Read the file COPYING that comes with GRASS
+for details.
+
+ at author Martin Landa <landa.martin gmail.com>
+"""
+
+import wx
+
+class HelpWindow(wx.Frame):
+ """!GRASS Quickstart help window"""
+ def __init__(self, parent, id, title, size, file):
+
+ wx.Frame.__init__(self, parent=parent, id=id, title=title, size=size)
+
+ sizer = wx.BoxSizer(wx.VERTICAL)
+
+ # text
+ helpFrame = wx.html.HtmlWindow(parent=self, id=wx.ID_ANY)
+ helpFrame.SetStandardFonts (size = 10)
+ helpFrame.SetBorders(10)
+ wx.InitAllImageHandlers()
+
+ helpFrame.LoadFile(file)
+ self.Ok = True
+
+ sizer.Add(item=helpFrame, proportion=1, flag=wx.EXPAND)
+
+ self.SetAutoLayout(True)
+ self.SetSizer(sizer)
+ # sizer.Fit(self)
+ # sizer.SetSizeHints(self)
+ self.Layout()
Property changes on: grass/trunk/gui/wxpython/gui_modules/help.py
___________________________________________________________________
Added: svn:mime-type
+ text/x-python
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
More information about the grass-commit
mailing list