From 04bef3e0d6f0db689b31c05799f9a6c55e3220d9 Mon Sep 17 00:00:00 2001 From: isen Date: Sun, 18 Oct 2009 08:38:05 +0000 Subject: Commit before holidays lp426452 --- (limited to 'tutorius/creator.py') 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)) -- cgit v0.9.1