fixed indentation error
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@8428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -140,23 +140,23 @@ class FileBrowseButton(wxPanel):
|
|||||||
return button
|
return button
|
||||||
|
|
||||||
|
|
||||||
def OnBrowse (self, event = None):
|
def OnBrowse (self, event = None):
|
||||||
""" Going to browse for file... """
|
""" Going to browse for file... """
|
||||||
current = self.GetValue()
|
current = self.GetValue()
|
||||||
directory = os.path.split(current)
|
directory = os.path.split(current)
|
||||||
if os.path.isdir( current):
|
if os.path.isdir( current):
|
||||||
directory = current
|
directory = current
|
||||||
current = ''
|
current = ''
|
||||||
elif directory and os.path.isdir( directory[0] ):
|
elif directory and os.path.isdir( directory[0] ):
|
||||||
current = directory[1]
|
current = directory[1]
|
||||||
directory = directory [0]
|
directory = directory [0]
|
||||||
else:
|
else:
|
||||||
directory = self.startDirectory
|
directory = self.startDirectory
|
||||||
dlg = wxFileDialog(self, self.dialogTitle, directory, current, self.fileMask, self.fileMode)
|
dlg = wxFileDialog(self, self.dialogTitle, directory, current, self.fileMask, self.fileMode)
|
||||||
|
|
||||||
if dlg.ShowModal() == wxID_OK:
|
if dlg.ShowModal() == wxID_OK:
|
||||||
self.SetValue (dlg.GetPath())
|
self.SetValue (dlg.GetPath())
|
||||||
dlg.Destroy()
|
dlg.Destroy()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user