Skip to content

Commit

Permalink
Merge pull request AppliedBioinformatics#2 from DanielFaulkner/dialog…
Browse files Browse the repository at this point in the history
…-box-fixes

Fixes to dialog window returned file paths
  • Loading branch information
DanielFaulkner authored Oct 28, 2020
2 parents fd98840 + 82a34df commit 94a4cf9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/App.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def select_ref(self):
self.ref=codecs.decode(str(ref)[1:-1].split(',')[0][2:-1],'unicode_escape')
self.ui.ref_input.setText(self.ref)
else:
self.ref = unicode(QtWidgets.QFileDialog.getOpenFileName(self, 'Select reference sequences', '','sequences (*fasta *fa *fna)'))
self.ref = unicode(QtWidgets.QFileDialog.getOpenFileName(self, 'Select reference sequences', '','sequences (*fasta *fa *fna)')[0])
self.ui.ref_input.setText(self.ref)

def clear_ref(self):
Expand Down Expand Up @@ -195,7 +195,7 @@ def select_bnx(self):
self.bnx = codecs.decode(str(bnx)[1:-1].split(',')[0][2:-1],'unicode_escape')
self.ui.raw_input.setText(self.bnx)
else:
self.bnx = unicode(QtWidgets.QFileDialog.getOpenFileName(self,'Select bnx file','','bnx file (*.bnx)'))
self.bnx = unicode(QtWidgets.QFileDialog.getOpenFileName(self,'Select bnx file','','bnx file (*.bnx)')[0])
self.ui.raw_input.setText(self.bnx)

def clear_bnx(self):
Expand Down Expand Up @@ -243,7 +243,7 @@ def select_xmap(self):
self.xmap = codecs.decode(str(xmap)[1:-1].split(',')[0][2:-1],'unicode_escape')
self.ui.xmap_input.setText(self.xmap)
else:
self.xmap = unicode(QtWidgets.QFileDialog.getOpenFileName(self,'Select xmap file','','xmap file (*.xmap)'))
self.xmap = unicode(QtWidgets.QFileDialog.getOpenFileName(self,'Select xmap file','','xmap file (*.xmap)')[0])
self.ui.xmap_input.setText(self.xmap)

def clear_xmap(self):
Expand All @@ -256,7 +256,7 @@ def select_rcmap(self):
self.rcmap = codecs.decode(str(rcmap)[1:-1].split(',')[0][2:-1],'unicode_escape')
self.ui.rcmap_input.setText(self.rcmap)
else:
self.rcmap = unicode(QtWidgets.QFileDialog.getOpenFileName(self,'Select ref cmap file','','cmap file (*_r.cmap)'))
self.rcmap = unicode(QtWidgets.QFileDialog.getOpenFileName(self,'Select ref cmap file','','cmap file (*_r.cmap)')[0])
self.ui.rcmap_input.setText(self.rcmap)

def clear_rcmap(self):
Expand All @@ -269,7 +269,7 @@ def select_qcmap(self):
self.qcmap = codecs.decode(str(qcmap)[1:-1].split(',')[0][2:-1],'unicode_escape')
self.ui.qcmap_input.setText(self.qcmap)
else:
self.qcmap = unicode(QtWidgets.QFileDialog.getOpenFileName(self,'Select qry cmap file','','cmap file (*_q.cmap)'))
self.qcmap = unicode(QtWidgets.QFileDialog.getOpenFileName(self,'Select qry cmap file','','cmap file (*_q.cmap)')[0])
self.ui.qcmap_input.setText(self.qcmap)

def clear_qcmap(self):
Expand Down

0 comments on commit 94a4cf9

Please sign in to comment.