-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Matplotlib #47
Matplotlib #47
Conversation
file_data = QFileDialog.getSaveFileName( | ||
self, | ||
'Choose a directory', | ||
'', # use the last (or default) directory. It HAS to be str |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this was very useful comment, I think it should remain in place ;)
'', extensions_string, | ||
None, | ||
QFileDialog.DontUseNativeDialog) | ||
file_name = file_data[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if user clicks cancel in the file dialog?
Traceback (most recent call last):
File "/home/krassowski/Desktop/KN_BiBS/dotplot/gui.py", line 113, in select_save_file_dialog
extension = extensions[file_data[1]]
KeyError:
@@ -202,6 +221,7 @@ def create_canvas(self): | |||
self.canvas = text_area | |||
|
|||
self.canvas_box.addWidget(self.canvas) | |||
self.canvas_box.addWidget(savebutton) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's nice button. I would also add an entry in the menu. Just saying, not necessary.
The code is of good quality, added functions have concise docstrings. We need to add some tests to GUI later. There are some things which should be improved in the future, I listed them in comments. As the changes here are of high priority and overall quality is satisfying I will merge this straightaway. Many thanks @kinga322! |
Add basic axes labels with sequences names. Show sequence on the axis if it is short. Save plot to file. #34 #35