Reviewers: pierre.raybaut_gmail.com, Carlos Córdoba,
Message:
To get you familiar with code reviews, please review this change to
Project Explorer help.
Please review this at http://codereview.appspot.com/5338049/
Affected files:
M spyderlib/widgets/projectexplorer.py
Index: spyderlib/widgets/projectexplorer.py
===================================================================
--- a/spyderlib/widgets/projectexplorer.py
+++ b/spyderlib/widgets/projectexplorer.py
@@ -1059,14 +1059,17 @@
class WorkspaceSelector(QWidget):
"""Workspace selector widget"""
TITLE = _('Select an existing workspace directory, or create a new
one')
- WHAT = _("What is the workspace?")
- TIP = _("A Spyder project is a folder with source code files (and any "
- "other kind of related files) and a configuration file (named "
- "<b>.spyderproject</b>) which stores the project settings "
- "(PYTHONPATH, related projects, ...).<br><br>"
- "The workspace is a directory, which contains Spyder projects "
- "(<u>top level</u> subdirectories) and a configuration file "
- "(named <b>.spyderworkspace</b>). ")
+ TIP = _("<u><b>What is the workspace?</b></u>"
+ "<br><br>"
+ "A <b>Spyder workspace</b> is a directory on your filesystem
that "
+ "contains Spyder projects and <b>.spyderworkspace</b>
configuration "
+ "file."
+ "<br><br>"
+ "A <b>Spyder project</b> is a directory with source code (and
other "
+ "related files) and a configuration file (named "
+ "<b>.spyderproject</b>) with project settings (PYTHONPATH,
linked "
+ "projects, ...).<br>"
+ )
def __init__(self, parent):
super(WorkspaceSelector, self).__init__(parent)
@@ -1084,7 +1087,6 @@
self.line_edit = QLineEdit()
self.line_edit.setAlignment(Qt.AlignRight)
self.line_edit.setToolTip(_("This is the current workspace
directory")\
-
+'<br><br>'+'<u><b>'+self.WHAT+'</b></u>'\
+'<br><br>'+self.TIP)
self.line_edit.setReadOnly(True)
self.line_edit.setDisabled(True)
@@ -1101,7 +1103,7 @@
def select_directory(self):
"""Select directory"""
if self.first_time:
- QMessageBox.information(self, self.WHAT, self.TIP)
+ QMessageBox.information(self, self.TITLE, self.TIP)
self.first_time = False
basedir = unicode(self.line_edit.text())
if not osp.isdir(basedir):
--
You received this message because you are subscribed to the Google Groups
"spyder" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/spyderlib?hl=en.