Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing issue with file selection dialog in connection wizard.

  • Loading branch information...
commit 0b02549a771cc088659c85a5162c4b2381c514e8 1 parent d9fd19f
@bendmorris bendmorris authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 app/connect_wizard.py
View
9 app/connect_wizard.py
@@ -153,17 +153,18 @@ def Draw(self, evt):
self.fieldset[opt[0]].AddMany([label,
self.option[opt[0]]])
if opt[0] == "file":
+ file_opt = opt
def open_file_dialog(evt):
filter = ""
- if opt[3]:
- filter = opt[3] + "|"
+ if file_opt[3]:
+ filter = file_opt[3] + "|"
filter += "All files (*.*)|*.*"
dialog = wx.FileDialog(None, style = wx.OPEN,
wildcard = filter)
if dialog.ShowModal() == wx.ID_OK:
- self.option[opt[0]].SetValue(dialog.GetPath())
+ self.option[file_opt[0]].SetValue(dialog.GetPath())
self.browse = wx.Button(self, -1, "Choose...")
- self.fieldset[opt[0]].Add(self.browse)
+ self.fieldset[file_opt[0]].Add(self.browse)
self.browse.Bind(wx.EVT_BUTTON, open_file_dialog)
self.fieldset[opt[0]].Layout()
self.fields.Add(self.fieldset[opt[0]])
Please sign in to comment.
Something went wrong with that request. Please try again.