[Horus] Simulator refactoring. This one should be nice :)

This commit is contained in:
Bertrand Songis
2015-10-24 19:47:44 +02:00
parent 6f774eb61a
commit 0673663427
24 changed files with 863 additions and 1006 deletions
-1
View File
@@ -378,7 +378,6 @@ long Open9xSim::onTimeout(FXObject*, FXSelector, void*)
#endif
#if defined(ROTARY_ENCODER_NAVIGATION) || defined(PCBHORUS)
extern rotenc_t rotencValue;
static bool rotencAction = false;
if (getApp()->getKeyState(KEY_G)) {
if (!rotencAction) ROTENC_VALUE += ROTARY_ENCODER_GRANULARITY;
+2 -2
View File
@@ -6,9 +6,9 @@ from PyQt4 import Qt, QtCore, QtGui
import glob
try:
app = Qt.QApplication(sys.argv)
app = Qt.QApplication(sys.argv)
except:
pass
app = Qt.QCoreApplication(sys.argv)
for f in glob.glob("fonts/*.ttf"):
QtGui.QFontDatabase.addApplicationFont(f)