UI/UserInterface.py

changeset 1939
eadb2328d7d4
parent 1926
474057fbefe0
child 2094
88620e11c67c
equal deleted inserted replaced
1936:536b88d73d53 1939:eadb2328d7d4
5532 self.trUtf8("First time usage"), 5532 self.trUtf8("First time usage"),
5533 self.trUtf8("""eric5 has not been configured yet. """ 5533 self.trUtf8("""eric5 has not been configured yet. """
5534 """The configuration dialog will be started.""")) 5534 """The configuration dialog will be started."""))
5535 self.showPreferences() 5535 self.showPreferences()
5536 5536
5537 def checkProjectsWorkspace(self):
5538 """
5539 Public method to check, if a projects workspace has been configured. If
5540 it has not, a dialog is shown.
5541 """
5542 if not Preferences.isConfigured():
5543 # eric hasn't been configured at all
5544 self.checkConfigurationStatus()
5545
5546 workspace = Preferences.getMultiProject("Workspace")
5547 if workspace == "":
5548 default = Utilities.getHomeDir()
5549 workspace = E5FileDialog.getExistingDirectory(
5550 None,
5551 self.trUtf8("Select Workspace Directory"),
5552 default,
5553 E5FileDialog.Options(E5FileDialog.Option(0)))
5554 Preferences.setMultiProject("Workspace", workspace)
5555
5537 def versionIsNewer(self, required, snapshot=None): 5556 def versionIsNewer(self, required, snapshot=None):
5538 """ 5557 """
5539 Public method to check, if the eric5 version is good compared to 5558 Public method to check, if the eric5 version is good compared to
5540 the required version. 5559 the required version.
5541 5560

eric ide

mercurial