def connect(cls, *args): # Handle slots that have names corresponding to Python keywords. slot_name = str(args[-1]) if slot_name.endswith('.raise'): args = list(args[:-1]) args.append(Literal(slot_name + '_')) ProxyClassMember(cls, "connect", 0)(*args)
def _printer(self, rname, *args): i18n_print("%s = %s.%s(%s)" % (rname, self, name, ", ".join(map(as_string, args)))) return Literal(rname)
def indexOf(self, page): return Literal("%s.indexOf(%s)" % (self, page))
def menuAction(self): return Literal("%s.menuAction()" % self)
def minimumSizeHint(self): return Literal("%s.minimumSizeHint()" % self)
def font(self): return Literal("%s.font()" % self)
def __or__(self, r_op): return Literal("%s|%s" % (self, r_op))