/[thuban]/trunk/thuban/Extensions/gns2shp/gns2shp.py
ViewVC logotype

Diff of /trunk/thuban/Extensions/gns2shp/gns2shp.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2486 by jan, Sat Dec 18 22:57:03 2004 UTC revision 2721 by dpinte, Sat Jan 13 15:11:42 2007 UTC
# Line 25  import os, sys Line 25  import os, sys
25    
26  # only import GUI and register when not called as command line tool  # only import GUI and register when not called as command line tool
27  if __name__ != '__main__':  if __name__ != '__main__':
28      from wxPython.wx import *      import wx
29    
30      from Thuban.UI.command import registry, Command      from Thuban.UI.command import registry, Command
31      from Thuban.UI.mainwindow import main_menu      from Thuban.UI.mainwindow import main_menu
# Line 123  def gns2shp_dialog(context): Line 123  def gns2shp_dialog(context):
123    
124      context -- The Thuban context.      context -- The Thuban context.
125      """      """
126      dlg = wxFileDialog(context.mainwindow,      dlg = wx.FileDialog(context.mainwindow,
127                         _('Select GNS file'), '.', '',                         _('Select GNS file'), '.', '',
128                         _('Generate Files (*.txt)|*.txt|') +                         _('Generate Files (*.txt)|*.txt|') +
129                         _('All Files (*.*)|*.*'),                         _('All Files (*.*)|*.*'),
130                         wxOPEN|wxOVERWRITE_PROMPT)                         wx.OPEN|wx.OVERWRITE_PROMPT)
131      if dlg.ShowModal() == wxID_OK:      if dlg.ShowModal() == wx.ID_OK:
132          gns_filename = dlg.GetPath()          gns_filename = dlg.GetPath()
133          dlg.Destroy()          dlg.Destroy()
134      else:      else:

Legend:
Removed from v.2486  
changed lines
  Added in v.2721

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26