This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import copy | |
| from PyQt4.QtCore import * | |
| from PyQt4.QtGui import * | |
| from PyQt4.QtWebKit import * | |
| class FlickData(object): | |
| Steady = 0 | |
| Pressed = 1 | |
| ManualScroll = 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from PyQt4.QtCore import * | |
| from PyQt4.QtGui import * | |
| class MouseGestureRecognizer(QGestureRecognizer): | |
| Up = 0 | |
| Down = 1 | |
| Left = 2 | |
| Right = 3 | |
| AnyHorizontal = 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from numpy import matrix,array | |
| import numpy as np | |
| from time import clock | |
| def has_overlap(m): | |
| for i in xrange(m.shape[0]): | |
| for j in xrange(m.shape[1]): | |
| if m[i,j] > 1: | |
| return True | |
| return False |
NewerOlder