Compare commits

...

2 Commits

Author SHA1 Message Date
adrienmalin
0b3dd847d3 exclude Qt from build 2019-10-02 02:29:00 +02:00
adrienmalin
2a7900586c Autorepeat in conf 2019-10-02 02:28:49 +02:00
2 changed files with 8 additions and 1 deletions

View File

@ -190,6 +190,10 @@ class TetrArcade(tetrislogic.TetrisLogic, arcade.Window):
"pause": "ESCAPE",
"fullscreen": "F11",
}
self.conf["AUTO-REPEAT"] = {
"delay": 0.3,
"period": 0.01
}
self.load_conf()
if not os.path.exists(USER_PROFILE_DIR):
os.makedirs(USER_PROFILE_DIR)
@ -241,6 +245,9 @@ class TetrArcade(tetrislogic.TetrisLogic, arcade.Window):
},
}
self.AUTOREPEAT_DELAY = float(self.conf["AUTO-REPEAT"]["delay"])
self.AUTOREPEAT_PERIOD = float(self.conf["AUTO-REPEAT"]["period"])
controls_text = (
"\n\n\nCONTROLS\n\n"
+ "\n".join(

View File

@ -22,7 +22,7 @@ setup(
options={
"build_exe": {
"packages": ["arcade", "pyglet"],
"excludes": ["tkinter"],
"excludes": ["tkinter", "PyQt4", "PyQt5", "PySide", "PySide2"],
"include_files": "res",
"silent": True
}