diff --git a/models/dimers random walk.xml b/models/dimers random walk.xml index 817dd1b..fc65c86 100644 --- a/models/dimers random walk.xml +++ b/models/dimers random walk.xml @@ -2,9 +2,9 @@ - Modèle de test + Chrysalide - Léontine Patinette + Léontine qui patine 2 @@ -12,10 +12,10 @@ 1.0 - Ref + C'est qui ?' - + 0 9 @@ -54,7 +54,7 @@ - + @@ -65,7 +65,7 @@ - + diff --git a/schemas/models_0.2.1.xmls b/schemas/models_0.2.1.xmls index 3a623f5..a7b3ef5 100644 --- a/schemas/models_0.2.1.xmls +++ b/schemas/models_0.2.1.xmls @@ -10,18 +10,21 @@ - + + + + - - @@ -50,7 +53,6 @@ - @@ -64,7 +66,6 @@ - @@ -80,11 +81,10 @@ - - + @@ -93,7 +93,7 @@ - + @@ -162,7 +162,7 @@ - + diff --git a/src/main.py b/src/main.py index f2a95fb..14dfb9a 100644 --- a/src/main.py +++ b/src/main.py @@ -32,4 +32,4 @@ builder = Gtk.Builder() builder.add_from_file(glade_path) win = builder.get_object("Appwindow") -win.show_all() +win diff --git a/src/model.py b/src/model.py index cabf07c..d2a27d4 100644 --- a/src/model.py +++ b/src/model.py @@ -225,7 +225,7 @@ class Objects: def get_object(self, i): return self.__objects[i] -## Savestates +## Savedstates class Space: @@ -241,7 +241,7 @@ class Space: return self.__arrows[i] -class Savestates: +class Savedstates: __space = [] def __init__(self, node): @@ -379,8 +379,8 @@ class Model: self.__parameters = child if(child.tag == "objects"): self.__objects = child - if(child.tag == "savestates"): - self.__savestates = child + if(child.tag == "savedstates"): + self.__savedstates = child if(child.tag == "conditions"): self.__conditions = child if(child.tag == "transition"): @@ -395,8 +395,8 @@ class Model: def get_objects(self): return Objects(self.__objects) - def get_savestates(self): - return Savestates(self.__savestates) + def get_savedstates(self): + return Savedstates(self.__savedstates) def get_conditions(self): return Conditions(self.__conditions) @@ -409,6 +409,6 @@ class Model: modelPath = "../models/dimers random walk.xml" -schemaPath = "../schemas/models_0.2.xmls" +schemaPath = "../schemas/models_0.2.1.xmls" testmodel = Model(modelPath, schemaPath)