예제 #1
0
        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)
예제 #2
0
 def _printer(self, rname, *args):
     i18n_print("%s = %s.%s(%s)" %
                (rname, self, name, ", ".join(map(as_string, args))))
     return Literal(rname)
예제 #3
0
 def indexOf(self, page):
     return Literal("%s.indexOf(%s)" % (self, page))
예제 #4
0
 def menuAction(self):
     return Literal("%s.menuAction()" % self)
예제 #5
0
 def minimumSizeHint(self):
     return Literal("%s.minimumSizeHint()" % self)
예제 #6
0
 def font(self):
     return Literal("%s.font()" % self)
예제 #7
0
 def __or__(self, r_op):
     return Literal("%s|%s" % (self, r_op))