[GRASS-SVN] r54073 - in grass-addons/grass7/gui/wxpython: . wx.timeline

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Nov 27 02:45:24 PST 2012


Author: annakrat
Date: 2012-11-27 02:45:23 -0800 (Tue, 27 Nov 2012)
New Revision: 54073

Added:
   grass-addons/grass7/gui/wxpython/wx.timeline/
Removed:
   grass-addons/grass7/gui/wxpython/timeline/
Modified:
   grass-addons/grass7/gui/wxpython/wx.timeline/frame.py
   grass-addons/grass7/gui/wxpython/wx.timeline/g.gui.timeline.py
Log:
wx.timeline: renamed by adding wx.

Modified: grass-addons/grass7/gui/wxpython/wx.timeline/frame.py
===================================================================
--- grass-addons/grass7/gui/wxpython/timeline/frame.py	2012-11-27 08:46:48 UTC (rev 54070)
+++ grass-addons/grass7/gui/wxpython/wx.timeline/frame.py	2012-11-27 10:45:23 UTC (rev 54073)
@@ -1,5 +1,5 @@
 """!
- at package timeline.frame
+ at package frame
 
 @brief Timeline Tool
 

Modified: grass-addons/grass7/gui/wxpython/wx.timeline/g.gui.timeline.py
===================================================================
--- grass-addons/grass7/gui/wxpython/timeline/g.gui.timeline.py	2012-11-27 08:46:48 UTC (rev 54070)
+++ grass-addons/grass7/gui/wxpython/wx.timeline/g.gui.timeline.py	2012-11-27 10:45:23 UTC (rev 54073)
@@ -39,10 +39,10 @@
 
 import grass.script as grass
 
-if __name__ == '__main__':
-    sys.path.append(os.path.join(os.environ['GISBASE'], "etc", "gui", "wxpython"))
+# if __name__ == '__main__':
+#     sys.path.append(os.path.join(os.environ['GISBASE'], "etc", "gui", "wxpython"))
 
-from timeline.frame import TimelineFrame
+sys.path.insert(1, os.path.join(os.path.dirname(sys.path[0]), 'etc', 'g.gui.timeline'))
 
 def main():
     gettext.install('grasswxpy', os.path.join(os.getenv("GISBASE"), 'locale'), unicode = True)
@@ -54,6 +54,7 @@
     view3d = flags['3']
 
     app = wx.PySimpleApp()
+    from frame import TimelineFrame
     frame = TimelineFrame(None)
     frame.SetDatasets(datasets)
     frame.Show3D(view3d)



More information about the grass-commit mailing list