Пример #1
0
def dbg_vimpdb():
    import vimpdb; vimpdb.set_trace()
    x = 1
    y = 2
    print x + y
    for i in range(0,3):
        print i
    return True
Пример #2
0
def main():
    import vimpdb; vimpdb.set_trace()
    for abc in range(10):
        output(abc)
Пример #3
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Create from 2018/6/23 15:01

import os
import ast
import vimpdb


class ReleaseCode(object):
    def __init__(self):
        c = "safsda"
        print "1"

    def _Internal(self):
        d = "ssafdssda"
        print "2"

    def release(self):
        self._Internal()


if __name__ == '__main__':
    a = "sadsaf"
    b = "sadsaf"
    vimpdb.set_trace()
    controller = ReleaseCode()
    print "3"
    vimpdb.set_trace()
    result = controller.release()
Пример #4
0
# -*- coding: utf-8 -*-
import vimpdb; vimpdb.set_trace()
import sys, os
from PyQt4 import QtCore, QtGui, uic
from PyQt4.phonon import Phonon
#import icons_rc

class AudioPlayer(QtGui.QWidget):
    def __init__(self, url, parent = None):

        self.url = url
        
        QtGui.QWidget.__init__(self, parent)
        self.setSizePolicy(QtGui.QSizePolicy.Expanding,
            QtGui.QSizePolicy.Preferred)


        self.player = Phonon.createPlayer(Phonon.MusicCategory,
             Phonon.MediaSource(url))
        self.player.setTickInterval(100)
        self.player.tick.connect(self.tock)

        self.play_pause = QtGui.QPushButton(self)
        #self.play_pause.setIcon(QtGui.QIcon(':/icons/player_play.svg'))
        self.play_pause.clicked.connect(self.playClicked)
        self.player.stateChanged.connect(self.stateChanged)

        self.slider = Phonon.SeekSlider(self.player , self)
        
        self.status = QtGui.QLabel(self)
        self.status.setAlignment(QtCore.Qt.AlignRight |