From cc2b7dde15e29d9016e9ec7ffa790ff38bd31521 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 26 Sep 2000 23:53:12 +0000 Subject: [PATCH] fixed indentation error git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@8428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wxPython/lib/filebrowsebutton.py | 32 +++++++++++------------ 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/wxPython/wxPython/lib/filebrowsebutton.py b/wxPython/wxPython/lib/filebrowsebutton.py index 07388be053..731a48dd34 100644 --- a/wxPython/wxPython/lib/filebrowsebutton.py +++ b/wxPython/wxPython/lib/filebrowsebutton.py @@ -140,23 +140,23 @@ class FileBrowseButton(wxPanel): return button - def OnBrowse (self, event = None): - """ Going to browse for file... """ - current = self.GetValue() - directory = os.path.split(current) - if os.path.isdir( current): - directory = current - current = '' - elif directory and os.path.isdir( directory[0] ): - current = directory[1] - directory = directory [0] - else: - directory = self.startDirectory - dlg = wxFileDialog(self, self.dialogTitle, directory, current, self.fileMask, self.fileMode) + def OnBrowse (self, event = None): + """ Going to browse for file... """ + current = self.GetValue() + directory = os.path.split(current) + if os.path.isdir( current): + directory = current + current = '' + elif directory and os.path.isdir( directory[0] ): + current = directory[1] + directory = directory [0] + else: + directory = self.startDirectory + dlg = wxFileDialog(self, self.dialogTitle, directory, current, self.fileMask, self.fileMode) - if dlg.ShowModal() == wxID_OK: - self.SetValue (dlg.GetPath()) - dlg.Destroy() + if dlg.ShowModal() == wxID_OK: + self.SetValue (dlg.GetPath()) + dlg.Destroy()