jan: thuban/Examples/simple_extensions simple_tool.py,1.5,1.6

cvs@intevation.de cvs at intevation.de
Sat Nov 20 22:58:20 CET 2004


Author: jan

Update of /thubanrepository/thuban/Examples/simple_extensions
In directory doto:/tmp/cvs-serv9704

Modified Files:
	simple_tool.py 
Log Message:
Minor changes.


Index: simple_tool.py
===================================================================
RCS file: /thubanrepository/thuban/Examples/simple_extensions/simple_tool.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- simple_tool.py	12 Sep 2003 08:32:24 -0000	1.5
+++ simple_tool.py	20 Nov 2004 21:58:18 -0000	1.6
@@ -1,6 +1,7 @@
-# Copyright (C) 2002 by Intevation GmbH
+# Copyright (C) 2002, 2004 by Intevation GmbH
 # Authors:
-# Bernhard Herzog <bh at intevation.de>
+# Bernhard Herzog <bh at intevation.de> (2002)
+# Jan-Oliver Wagner <jan at intevation.de> (2004)
 #
 # This program is free software under the GPL (>=v2)
 # Read the file COPYING coming with Thuban for details.
@@ -10,12 +11,14 @@
 """
 
 __version__ = "$Revision$"
+# $Source$
+# $Id$
 
 # First import some things we need later.
 import os
 from math import hypot
 from Thuban.UI.command import registry, ToolCommand
-import Thuban.UI.mainwindow
+from  Thuban.UI.mainwindow import main_toolbar
 from Thuban.UI.viewport import Tool
 
 
@@ -102,5 +105,5 @@
                          checked = check_simple_tool))
 
 # Add the command to the toolbar
-Thuban.UI.mainwindow.main_toolbar.InsertSeparator()
-Thuban.UI.mainwindow.main_toolbar.InsertItem("simple_tool")
+main_toolbar.InsertSeparator()
+main_toolbar.InsertItem("simple_tool")





More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)