Added examples loader functionality

This commit is contained in:
Jose Luis Cercós pita 2012-01-29 19:44:03 +01:00
parent 58dc011e38
commit a0d0c68162

View File

@ -35,6 +35,11 @@ class TaskPanel:
self.ui = Paths.modulePath() + "/shipLoadExample/TaskPanel.ui"
def accept(self):
path = Paths.modulePath() + "/Examples/"
if(self.form.ship.currentIndex() == 0): # s60 from Iowa University
App.open(path + "s60.fcstd")
elif(self.form.ship.currentIndex() == 1): # Barehull 5415
App.open(path + "barehull5415.fcstd")
return True
def reject(self):