def __init__(self, main_field, attribute_names):
     FieldsDialogMultiplex.__init__(
         self, "Edit properties", main_field,
         [(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL),
          (gtk.STOCK_APPLY, gtk.RESPONSE_APPLY),
          (gtk.STOCK_OK, gtk.RESPONSE_OK)])
     self.attribute_names = attribute_names
Beispiel #2
0
 def write(self):
     FieldsDialogMultiplex.write(self)
     for name in self.main_field.changed_names():
         self.changed_names.add(name)
         # this is necessary when the user clicks the apply button:
         for node in self.nodes:
             p = node.properties_by_name.get(name)
             if p is not None:
                 p.set(node, p.get(node))
 def write(self):
     FieldsDialogMultiplex.write(self)
     for name in self.main_field.changed_names():
         self.changed_names.add(name)
         # this is necessary when the user clicks the apply button:
         for node in self.nodes:
             p = node.properties_by_name.get(name)
             if p is not None:
                 p.set(node, p.get(node))
Beispiel #4
0
 def __init__(self, main_field, attribute_names):
     FieldsDialogMultiplex.__init__(
         self,
         "Edit properties",
         main_field,
         [
             (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL),
             (gtk.STOCK_APPLY, gtk.RESPONSE_APPLY),
             (gtk.STOCK_OK, gtk.RESPONSE_OK)
         ]
     )
     self.attribute_names = attribute_names
Beispiel #5
0
 def run(self, nodes):
     self.nodes = nodes
     self.changed_names = set([])
     return FieldsDialogMultiplex.run(self, nodes)
 def run(self, nodes):
     self.nodes = nodes
     self.changed_names = set([])
     return FieldsDialogMultiplex.run(self, nodes)