示例#1
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
示例#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))
示例#3
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))
示例#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
示例#5
0
 def run(self, nodes):
     self.nodes = nodes
     self.changed_names = set([])
     return FieldsDialogMultiplex.run(self, nodes)
示例#6
0
 def run(self, nodes):
     self.nodes = nodes
     self.changed_names = set([])
     return FieldsDialogMultiplex.run(self, nodes)