Skip to content

Commit

Permalink
Change the name of get_file_path function
Browse files Browse the repository at this point in the history
Co-authored-by: Maria Kim Heinert <[email protected]>
  • Loading branch information
ColemanKobe and mariakimheinert authored Feb 5, 2022
1 parent 5e1cf5a commit b145790
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gatorconfig/gui/cwidgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ def set_textbox_text(self, text):
"""Set the textbox text"""
self.line.setText(os.path.relpath(text))

def get_file_path(self):
def text(self):
"""Return the file path from the text box"""
return self.line.text()
if self.line.text() == "":
return ""
return os.path.relpath(self.line.text())

0 comments on commit b145790

Please sign in to comment.