Beispiel #1
0
	def __init__(self):
		
		debug("***** __init__ *******")
		PySemsDialog.__init__(self)
		self.initial_req = None
		self.ann = None
		sip.settracemask(0xFFFF)
Beispiel #2
0
    def __init__(self):

        debug("***** __init__ *******")
        PySemsDialog.__init__(self)
        self.initial_req = None
        self.ann = None
        sip.settracemask(0xFFFF)
Beispiel #3
0
	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)
Beispiel #4
0
# -*- coding: utf-8 -*-
"""
Created on Mon Dec 16 09:44:06 2013

@author: MarcosScholl
"""

# The Python version of qwt-*/examples/dials

# for debugging, requires: python configure.py --trace ...
if 0:
    import sip
    sip.settracemask(0x3f)

import math
import random
import sys
from PyQt4 import Qt
import PyQt4.Qwt5 as Qwt


def enumList(enum, sentinel):
    '''
    '''
    return [enum(i) for i in range(sentinel)]


colorGroupList = enumList(Qt.QPalette.ColorGroup, Qt.QPalette.NColorGroups)
colorRoleList = enumList(Qt.QPalette.ColorRole, Qt.QPalette.NColorRoles)
handList = enumList(Qwt.QwtAnalogClock.Hand, Qwt.QwtAnalogClock.NHands)
Beispiel #5
0

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: ***
#!/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)
Beispiel #7
0
# Based on BodeDemo.py and Stripchart
# By Douglas Bennett

import sys
from PyQt4.Qt import *
from PyQt4.Qwt5 import *
import PyQt4.Qwt5.anynumpy as np
from PyQt4 import QtGui, QtCore
import lakeshore370
import lr700
import hp34401a
from time import time
from scipy.io import write_array

import sip
sip.settracemask(0xff)

zoom_xpm = [
    '32 32 8 1', '# c #000000', 'b c #c0c0c0', 'a c #ffffff', 'e c #585858',
    'd c #a0a0a4', 'c c #0000ff', 'f c #00ffff', '. c None',
    '..######################........', '.#a#baaaaaaaaaaaaaaaaaa#........',
    '#aa#baaaaaaaaaaaaaccaca#........', '####baaaaaaaaaaaaaaaaca####.....',
    '#bbbbaaaaaaaaaaaacccaaa#da#.....', '#aaaaaaaaaaaaaaaacccaca#da#.....',
    '#aaaaaaaaaaaaaaaaaccaca#da#.....', '#aaaaaaaaaabe###ebaaaaa#da#.....',
    '#aaaaaaaaa#########aaaa#da#.....', '#aaaaaaaa###dbbbb###aaa#da#.....',
    '#aaaaaaa###aaaaffb###aa#da#.....', '#aaaaaab##aaccaaafb##ba#da#.....',
    '#aaaaaae#daaccaccaad#ea#da#.....', '#aaaaaa##aaaaaaccaab##a#da#.....',
    '#aaaaaa##aacccaaaaab##a#da#.....', '#aaaaaa##aaccccaccab##a#da#.....',
    '#aaaaaae#daccccaccad#ea#da#.....', '#aaaaaab##aacccaaaa##da#da#.....',
    '#aaccacd###aaaaaaa###da#da#.....', '#aaaaacad###daaad#####a#da#.....',
    '#acccaaaad##########da##da#.....', '#acccacaaadde###edd#eda#da#.....',
Beispiel #8
0
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()
Beispiel #9
0
def tracing(enable):
    sip.settracemask(SipTrace.ALL if enable else 0)
Beispiel #10
0

# SIP can show diagnostic traces for these categories
class SipTrace(object):
    VIRTUAL = 0x0001
    CONSTRUCTOR = 0x0002
    DESTRUCTOR = 0x0004
    PY_INIT = 0x0008
    PY_DEL = 0x0010
    PY_METHOD = 0x0020


SipTrace.ALL = (SipTrace.VIRTUAL | SipTrace.CONSTRUCTOR | SipTrace.DESTRUCTOR
                | SipTrace.PY_INIT | SipTrace.PY_DEL | SipTrace.PY_METHOD)

sip.settracemask(SipTrace.ALL)


def tracing(enable):
    sip.settracemask(SipTrace.ALL if enable else 0)


def autorepr(s=None):
    if s is not None:
        assert isinstance(s, basestring)

        def __repr__(self):
            return '<%s %s>' % (self.__class__.__name__, s % vars(self))
    else:

        def __repr__(self):
Beispiel #11
0
def tracing(enable):
    sip.settracemask(SipTrace.ALL if enable else 0)
Beispiel #12
0
    DESTRUCTOR = 0x0004
    PY_INIT = 0x0008
    PY_DEL = 0x0010
    PY_METHOD = 0x0020


SipTrace.ALL = (
    SipTrace.VIRTUAL
    | SipTrace.CONSTRUCTOR
    | SipTrace.DESTRUCTOR
    | SipTrace.PY_INIT
    | SipTrace.PY_DEL
    | SipTrace.PY_METHOD
)

sip.settracemask(SipTrace.ALL)


def tracing(enable):
    sip.settracemask(SipTrace.ALL if enable else 0)


def autorepr(s=None):
    if s is not None:
        assert isinstance(s, basestring)

        def __repr__(self):
            return "<%s %s>" % (self.__class__.__name__, s % vars(self))

    else:
Beispiel #13
0
# Based on BodeDemo.py and Stripchart
# By Douglas Bennett


import sys
from PyQt4.Qt import *
from PyQt4.Qwt5 import *
#import PyQt4.Qwt5.anynumpy as np
import numpy as np
from PyQt4 import QtGui, QtCore
import lakeshore370
from time import time
from numpy.fft import rfft


import sip; sip.settracemask(0xff)

zoom_xpm = ['32 32 8 1',
            '# c #000000',
            'b c #c0c0c0',
            'a c #ffffff',
            'e c #585858',
            'd c #a0a0a4',
            'c c #0000ff',
            'f c #00ffff',
            '. c None',
            '..######################........',
            '.#a#baaaaaaaaaaaaaaaaaa#........',
            '#aa#baaaaaaaaaaaaaccaca#........',
            '####baaaaaaaaaaaaaaaaca####.....',
            '#bbbbaaaaaaaaaaaacccaaa#da#.....',