예제 #1
0
 def markup_str(self):
     sig = dbus_utils.sig_to_string(self.property_info.signature)
     readwrite = list()
     if self.readable:
         readwrite.append("read")
     if self.writable:
         readwrite.append("write")
     s = "%s %s <small>(%s)</small>" % (
         args_signature_markup(sig),
         args_name_markup(self.property_info.name), " / ".join(readwrite))
     if self.value:
         s += " = %s" % (self.value, )
     return s
예제 #2
0
 def markup_str(self):
     sig = dbus_utils.sig_to_string(self.property_info.signature)
     readwrite = list()
     if self.readable:
         readwrite.append("read")
     if self.writable:
         readwrite.append("write")
     s = "%s %s <small>(%s)</small>" % (
         args_signature_markup(sig),
         args_name_markup(self.property_info.name), " / ".join(readwrite))
     if self.value:
         s += " = %s" % (self.value,)
     return s
예제 #3
0
 def __repr__(self):
     sig = dbus_utils.sig_to_string(self.property_info.signature)
     return "%s %s (%s)" % (sig, self.property_info.name,
                            self.property_info.flags)
예제 #4
0
 def out_args(self):
     out_args = list()
     for out_arg in self.method_info.out_args:
         sig = dbus_utils.sig_to_string(out_arg.signature)
         out_args.append({'signature': sig, 'name': out_arg.name})
     return out_args
예제 #5
0
 def in_args(self):
     in_args = list()
     for in_arg in self.method_info.in_args:
         sig = dbus_utils.sig_to_string(in_arg.signature)
         in_args.append({'signature': sig, 'name': in_arg.name})
     return in_args
예제 #6
0
 def args(self):
     args = list()
     for arg in self.signal_info.args:
         sig = dbus_utils.sig_to_string(arg.signature)
         args.append({'signature': sig, 'name': arg.name})
     return args
예제 #7
0
 def __repr__(self):
     sig = dbus_utils.sig_to_string(self.property_info.signature)
     return "%s %s (%s)" % (sig, self.property_info.name, self.property_info.flags)
예제 #8
0
 def out_args(self):
     out_args = list()
     for out_arg in self.method_info.out_args:
         sig = dbus_utils.sig_to_string(out_arg.signature)
         out_args.append({'signature': sig, 'name': out_arg.name})
     return out_args
예제 #9
0
 def in_args(self):
     in_args = list()
     for in_arg in self.method_info.in_args:
         sig = dbus_utils.sig_to_string(in_arg.signature)
         in_args.append({'signature': sig, 'name': in_arg.name})
     return in_args
예제 #10
0
 def args(self):
     args = list()
     for arg in self.signal_info.args:
         sig = dbus_utils.sig_to_string(arg.signature)
         args.append({'signature': sig, 'name': arg.name})
     return args