Added intersection tool to Drawing Tool.

This commit is contained in:
jpcaram
2015-02-06 16:10:15 -05:00
parent e353413cd3
commit 23b20ba716
8 changed files with 74 additions and 3 deletions

34
tests/destructor_test.py Normal file
View File

@@ -0,0 +1,34 @@
from time import sleep
from PyQt4 import QtCore
from FlatCAMWorker import Worker
class MyObj():
def __init__(self):
pass
def __del__(self):
print "##### Distroyed ######"
def parse():
o = MyObj()
raise Exception("Intentional Exception")
if __name__ == "__main__":
qo = QtCore.QObject
worker = Worker(qo)
thr1 = QtCore.QThread()
worker.moveToThread(thr1)
qo.connect(thr1, QtCore.SIGNAL("started()"), worker.run)
thr1.start()
while True:
try:
parse()
print "Parse returned."
except Exception:
pass
sleep(5)
print "Competed successfully."

View File

@@ -0,0 +1,6 @@
import cProfile
import pstats
from camlib import *
g = Geometry()