def new_child(self, childtype, settings, children): child = ContainerTarget.new_child(self, childtype, settings, children) if (not child.is_standalone()): x, y, w, h = child.get_geometry() self.__layout.put(child.get_widget(), x.as_px(), y.as_px()) return child
def new_child(self, childtype, settings, children): child = ContainerTarget.new_child(self, childtype, settings, children) slot = child.get_prop("slot") if (not slot in self.get_slots()): self.insert_slot(slot, len(self.get_slots())) self.add_to_slot(slot, child) return child
def __add_child(self): # use a unique ID settings = self.__elementsettings.copy() settings["id"] += "#" + str(len(self.__children)) child = ContainerTarget.new_child(self, self.__elementtype, settings, self.__elementchildren) self.__children.append(child) x, y, w, h = child.get_geometry() self.__layout.put(child.get_widget(), x.as_px(), y.as_px()) child.add_observer(self.__on_observe_children) if (not self._is_geometry_locked()): child.unlock_geometry()
def new_child(self, childtype, settings, children): child = ContainerTarget.new_child(self, childtype, settings, children) self.__menuitem.set_submenu(child.get_widget()) return child
def new_child(self, childtype, settings, children): child = ContainerTarget.new_child(self, childtype, settings, children) self.__box.add(child.get_widget()) self.__redraw_frame()
def new_child(self, childtype, settings, children): child = ContainerTarget.new_child(self, childtype, settings, children) self.__widget.attach(child.get_widget(), 1, 2, 0, 2, gtk.EXPAND | gtk.FILL, gtk.EXPAND | gtk.FILL, 0, 0)
def new_child(self, childtype, settings, children): child = ContainerTarget.new_child(self, childtype, settings, children) self.__align.add(child.get_widget())