FlatCAM.py 526 B

1234567891011121314151617181920
  1. import sys
  2. from PyQt4 import QtGui
  3. from PyQt4 import QtCore
  4. from FlatCAMApp import App
  5. def debug_trace():
  6. '''Set a tracepoint in the Python debugger that works with Qt'''
  7. from PyQt4.QtCore import pyqtRemoveInputHook
  8. #from pdb import set_trace
  9. pyqtRemoveInputHook()
  10. #set_trace()
  11. debug_trace()
  12. # all X11 calling should be thread safe otherwise we have strenght issues
  13. QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_X11InitThreads)
  14. app = QtGui.QApplication(sys.argv)
  15. fc = App()
  16. sys.exit(app.exec_())