2014-06-13 19:21:11 +00:00
|
|
|
import sys
|
|
|
|
from PyQt4 import QtGui
|
2016-03-24 22:06:44 +00:00
|
|
|
from PyQt4 import QtCore
|
2014-06-13 19:21:11 +00:00
|
|
|
from FlatCAMApp import App
|
2014-02-06 00:36:47 +00:00
|
|
|
|
2014-06-13 19:21:11 +00:00
|
|
|
def debug_trace():
|
2014-09-13 21:29:07 +00:00
|
|
|
'''Set a tracepoint in the Python debugger that works with Qt'''
|
|
|
|
from PyQt4.QtCore import pyqtRemoveInputHook
|
|
|
|
#from pdb import set_trace
|
|
|
|
pyqtRemoveInputHook()
|
|
|
|
#set_trace()
|
2014-03-28 22:14:21 +00:00
|
|
|
|
2014-06-13 19:21:11 +00:00
|
|
|
debug_trace()
|
2016-03-24 22:06:44 +00:00
|
|
|
|
2016-03-31 15:16:14 +00:00
|
|
|
# all X11 calling should be thread safe otherwise we have strange issues
|
2016-03-24 22:06:44 +00:00
|
|
|
QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_X11InitThreads)
|
|
|
|
|
2014-06-13 19:21:11 +00:00
|
|
|
app = QtGui.QApplication(sys.argv)
|
|
|
|
fc = App()
|
|
|
|
sys.exit(app.exec_())
|