Added examples loader functionality
This commit is contained in:
parent
58dc011e38
commit
a0d0c68162
|
@ -35,6 +35,11 @@ class TaskPanel:
|
||||||
self.ui = Paths.modulePath() + "/shipLoadExample/TaskPanel.ui"
|
self.ui = Paths.modulePath() + "/shipLoadExample/TaskPanel.ui"
|
||||||
|
|
||||||
def accept(self):
|
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
|
return True
|
||||||
|
|
||||||
def reject(self):
|
def reject(self):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user