Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tutorius/creator.py
diff options
context:
space:
mode:
Diffstat (limited to 'tutorius/creator.py')
-rw-r--r--tutorius/creator.py27
1 files changed, 26 insertions, 1 deletions
diff --git a/tutorius/creator.py b/tutorius/creator.py
index 82d0628..a0ef714 100644
--- a/tutorius/creator.py
+++ b/tutorius/creator.py
@@ -297,7 +297,7 @@ class EditToolBox(gtk.Window):
self.set_type_hint(gtk.gdk.WINDOW_TYPE_HINT_UTILITY)
self.set_destroy_with_parent(True)
self.set_deletable(False)
- self.set_size_request(200, 400)
+ self.set_size_request(400, 400)
self._vbox = gtk.VBox()
self.add(self._vbox)
@@ -337,6 +337,16 @@ class EditToolBox(gtk.Window):
for i in xrange(len(propval)):
entry = propwdg.get_children()[i]
entry.set_text(str(propval[i]))
+ elif isinstance(prop, properties.TArrayOneTypeProperty):################################
+ propwdg = row.get_children()[1]
+ for i in xrange(len(propval)):
+ entry = propwdg.get_children()[i]
+ elif isinstance(prop, properties.TPositionProperty):################################
+ propwdg = row.get_children()[1]
+ for i in xrange(len(propval)):
+ entry = propwdg.get_children()[i]
+ entry.set_text(str(propval[i]))
+ entry.set_text(str(propval[i]))
else:
propwdg = row.get_children()[1]
propwdg.set_text(str(propval))
@@ -379,6 +389,21 @@ class EditToolBox(gtk.Window):
propwdg.pack_start(entry)
entry.connect_after("focus-out-event", \
self._list_prop_changed, action, propname, i)
+ elif isinstance(prop, properties.TArrayOneTypeProperty):####################################
+ propwdg = gtk.HBox()
+ for i in xrange(len(propval)):
+ entry = gtk.Entry()
+ propwdg.pack_start(entry)
+ entry.connect_after("focus-out-event", \
+ self._list_prop_changed, action, propname, i)
+ elif isinstance(prop, properties.TPositionProperty):####################################
+ propwdg = gtk.HBox()
+ for i in xrange(len(propval)):
+ entry = gtk.Entry()
+ propwdg.pack_start(entry)
+ entry.connect_after("focus-out-event", \
+ self._list_prop_changed, action, propname, i)
+
else:
propwdg = gtk.Entry()
propwdg.set_text(str(propval))