Added examples loader functionality

This commit is contained in:
Jose Luis Cercós pita
2012-01-29 19:44:03 +01:00
parent 6c648890c4
commit ca825a40fc

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):