Skip to content

Instantly share code, notes, and snippets.

View hansent's full-sized avatar

Thomas Hansen hansent

View GitHub Profile
__all__ = ['WM_TOUCHProvider']
import ctypes
from ctypes import c_ulong, c_long, windll, WINFUNCTYPE, wintypes, Structure, c_int
from ..provider import TouchProvider
from ..factory import TouchFactory
from ..touch import Touch
from ..shape import TouchShapeRect
from ...base import getWindow
from ...utils import curry
'''
Window Pygame: windowing provider based on Pygame
'''
__all__ = ('MTWindowPygame', )
from . import BaseWindow
from ...logger import pymt_logger
from ...utils import curry
from ...base import stopTouchApp, getEventLoop
'''
WM_PEN: Support of WM_PEN message (Window platform)
'''
__all__ = ['WM_PenProvider']
import os
from ctypes import *
from ..provider import TouchProvider
from ..factory import TouchFactory
CvBlobTrackerAutoParam1 param = {0};
param.FGTrainFrames = 0;
param.pFG = cvCreateFGDetectorBase(CV_BG_MODEL_FGD, NULL); //new otFGDetector();
param.pBD = cvCreateBlobDetectorCC();
param.pBT = cvCreateBlobTrackerCCMSPF();
param.pBTGen = NULL;
param.pBTPP = cvCreateModuleBlobTrackPostProcKalman();
param.UsePPData = false;
param.pBTA = NULL;
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, install,
// copy or use the software.
//
//
// Intel License Agreement
def draw_connection_in_progress(touch):
drawLine([touch.userdata['connection_start'], touch.pos])
class ConnectionButton(MTWidget):
instances = []
def __init__(self, **kwargs):
super().__init__(**kwargs)
ConnectionButton.instances.append(self)
#ifdef WIN32
#include <winsock2.h>
#include <windows.h>
#else
#include <sys/queue.h>
#endif
#include <signal.h>
from pymt import *
class ScaleManipulation(MTWidget):
def init(self):
self.register_event_type('on_scale')
self.touches = []
self.distance = 0
def on_scale(self, scale):
#0 0x0805535a in std::_Rb_tree<std::string, std::pair<std::string const, moProperty*>, std::_Select1st<std::pair<std::string const, moProperty*> >, std::less<std::string>, std::allocator<std::pair<std::string const, moProperty*> > >::_M_begin (this=0x1d6b8252) at /usr/include/c++/4.4/bits/stl_tree.h:482
#1 0x08063267 in std::_Rb_tree<std::string, std::pair<std::string const, moProperty*>, std::_Select1st<std::pair<std::string const, moProperty*> >, std::less<std::string>, std::allocator<std::pair<std::string const, moProperty*> > >::find
(this=0x1d6b8252, __k=...) at /usr/include/c++/4.4/bits/stl_tree.h:1421
#2 0x0806301a in std::map<std::string, moProperty*, std::less<std::string>, std::allocator<std::pair<std::string const, moProperty*> > >::find (
this=0x1d6b8252, __x=...) at /usr/include/c++/4.4/bits/stl_map.h:659
#3 0x08061adf in moModule::property (this=0x1d6b81a6, str=...)
at src/moModule.cpp:242
#4 0x080501d6 in web_pipeline_status (req=0x82136b0, arg=0x0)
at src/movid.cpp:487
#5
Program received signal SIGABRT, Aborted.
0xb7fe2422 in __kernel_vsyscall ()
(gdb) btacktrace
Undefined command: "btacktrace". Try "help".
(gdb) backtrace
#0 0xb7fe2422 in __kernel_vsyscall ()
#1 0xb7741651 in raise () from /lib/tls/i686/cmov/libc.so.6
#2 0xb7744a82 in abort () from /lib/tls/i686/cmov/libc.so.6
#3 0xb797652f in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/libstdc++.so.6
#4 0xb7974465 in ?? () from /usr/lib/libstdc++.so.6