[GRASS-SVN] r47183 - grass-addons/grass7/gui/wxpython/wx.wms
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jul 20 03:37:49 EDT 2011
Author: sudeepsingh
Date: 2011-07-20 00:37:49 -0700 (Wed, 20 Jul 2011)
New Revision: 47183
Modified:
grass-addons/grass7/gui/wxpython/wx.wms/addserver.py
Log:
OnQuit and Wx_Close evt binded
Modified: grass-addons/grass7/gui/wxpython/wx.wms/addserver.py
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.wms/addserver.py 2011-07-20 07:24:41 UTC (rev 47182)
+++ grass-addons/grass7/gui/wxpython/wx.wms/addserver.py 2011-07-20 07:37:49 UTC (rev 47183)
@@ -43,7 +43,7 @@
self.Bind(wx.EVT_BUTTON, self.OnAddNew, self.AddNew)
self.Bind(wx.EVT_BUTTON, self.OnQuit, self.Quit)
# end wxGlade
-
+ self.Bind(wx.EVT_CLOSE, self.OnQuit)
self.__populate_URL_List(self.ServerList)
def __set_properties(self):
@@ -192,9 +192,11 @@
event.Skip()
def OnQuit(self, event): # wxGlade: ServerAdd.<event_handler>
+ print 'zumzum'
out = open('serverList.txt','w')
for k,v in self.servers.iteritems():
out.write(v.servername+" "+v.url+" "+v.username+" "+v.password+"\n")
+ exit()
#print "Event handler `OnQuit' not implemented"
event.Skip()
More information about the grass-commit
mailing list