Пример #1
0
def qt4info(msg, name = None, maxdepth = 1, browse = False):
    __linenum(always = True)
    if type(msg) is type('abc'):
        print 'Qt 4 INFO:', repr(msg)
    else:
        print 'Qt 4 INFO:',
        if name is not None: print name,
        print repr(msg)
        if browse:
            objectBrowse(msg, maxdepth = maxdepth, outf = sys.stdout)
Пример #2
0
def qt4info(msg, name = None, maxdepth = 1, browse = False):
    __linenum(always = True)
    if type(msg) is type('abc'):
        print 'Qt 4 INFO:', repr(msg)
    else:
        print 'Qt 4 INFO:',
        if name is not None: print name,
        print repr(msg)
        if browse:
            objectBrowse(msg, maxdepth = maxdepth, outf = sys.stdout)
Пример #3
0
def qt4die(msg=__nomsg, browse=False):
    traceback.print_stack(file=sys.stdout)
    if msg == __nomsg:
        print "Qt 4 DIE"
    elif browse:
        print "Qt 4 DIE:", msg
        objectBrowse(msg, maxdepth=1)
    else:
        if type(msg) is not types.StringType:
            msg = repr(msg)
        print "Qt 4 DIE: " + msg
    sys.exit(0)
Пример #4
0
def qt4die(msg = __nomsg, browse = False):
    traceback.print_stack(file = sys.stdout)
    if msg == __nomsg:
        print 'Qt 4 DIE'
    elif browse:
        print 'Qt 4 DIE:', msg
        objectBrowse(msg, maxdepth = 1)
    else:
        if type(msg) is not types.StringType:
            msg = repr(msg)
        print 'Qt 4 DIE: ' + msg
    sys.exit(0)