本文整理汇总了Python中sip.settracemask函数的典型用法代码示例。如果您正苦于以下问题:Python settracemask函数的具体用法?Python settracemask怎么用?Python settracemask使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了settracemask函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self):
debug("***** __init__ *******")
PySemsDialog.__init__(self)
self.initial_req = None
self.ann = None
sip.settracemask(0xFFFF)
示例2: __init__
def __init__(self):
debug("***** __init__ *******")
PySemsB2ABDialog.__init__(self)
self.initial_user = None
self.initial_domain = None
self.initial_fromuri = None
self.ann = None
sip.settracemask(0xFFFF)
示例3: make
def make():
demo = SliderDemo()
demo.show()
return demo
# make()
def main(args):
app = Qt.QApplication(args)
demo = make()
sys.exit(app.exec_())
# main()
# Admire!
if __name__ == '__main__':
if 'settracemask' in sys.argv:
# for debugging, requires: python configure.py --trace ...
import sip
sip.settracemask(0x3f)
main(sys.argv)
# Local Variables: ***
# mode: python ***
# End: ***
示例4: TuningThermo
#!/usr/bin/env python
# The Python version of Qwt-5.0.0/examples/radio
# for debugging, requires; python configure.py --trace ...
if False:
import sip
sip.settracemask(0x3F)
import sys
import qt
import Qwt5 as Qwt
from math import *
# -- tunerfrm.cpp --#
class TuningThermo(qt.QWidget):
def __init__(self, *args):
qt.QWidget.__init__(self, *args)
self.thermo = Qwt.QwtThermo(self)
self.thermo.setOrientation(qt.Qt.Horizontal, Qwt.QwtThermo.NoScale)
self.thermo.setRange(0.0, 1.0)
self.thermo.setFillColor(qt.Qt.green)
label = qt.QLabel("Tuning", self)
label.setAlignment(qt.Qt.AlignCenter)
示例5: test_scope
import sip
import wx
from testutil import assert_ownership
sip.settracemask(wx.SipTrace.ALL)
def test_scope():
s = wx.StockGDI.instance()
assert not sip.ispyowned(s)
assert_ownership(wx.StockGDI.instance, pyowned = False)
import gc
gc.collect()
def test_StockGDI():
test_scope()
# wxBrush
#b = s.GetBrush(wx.StockGDI.BRUSH_BLUE)
#print b.Colour
# wxFont
normal_font = wx.StockGDI.instance().GetFont(wx.StockGDI.FONT_NORMAL)
print 'NORMAL_FONT.PointSize', normal_font.PointSize
def main():
#import pdb; pdb.set_trace()
wx.App()
test_StockGDI()
if __name__ == '__main__':
main()
示例6: tracing
def tracing(enable):
sip.settracemask(SipTrace.ALL if enable else 0)