Show details button by default
This commit is contained in:
parent
ee0e684e82
commit
8139bf8154
1
.gitignore
vendored
1
.gitignore
vendored
@ -17,6 +17,7 @@ lib/
|
|||||||
lib64/
|
lib64/
|
||||||
parts/
|
parts/
|
||||||
sdist/
|
sdist/
|
||||||
|
Tetris2000.build/
|
||||||
var/
|
var/
|
||||||
wheels/
|
wheels/
|
||||||
*.egg-info/
|
*.egg-info/
|
||||||
|
@ -147,7 +147,7 @@ class Matrix(Grid):
|
|||||||
self.speed = consts.INITIAL_SPEED * (0.8 - ((level - 1) * 0.007)) ** (level - 1)
|
self.speed = consts.INITIAL_SPEED * (0.8 - ((level - 1) * 0.007)) ** (level - 1)
|
||||||
self.fall_timer.start(self.speed)
|
self.fall_timer.start(self.speed)
|
||||||
if level > 15:
|
if level > 15:
|
||||||
self.lock_delay *= consts.AFTER_LVL_15_ACCELERATION
|
self.lock_delay = consts.LOCK_DELAY * (consts.AFTER_LVL_15_ACCELERATION ** (level-15))
|
||||||
|
|
||||||
def empty_row(self):
|
def empty_row(self):
|
||||||
return [None for x in range(self.COLUMNS)]
|
return [None for x in range(self.COLUMNS)]
|
||||||
@ -1077,6 +1077,10 @@ class Frames(QtWidgets.QWidget):
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
msgbox.setDetailedText(self.stats.text(full_stats=True))
|
msgbox.setDetailedText(self.stats.text(full_stats=True))
|
||||||
|
# Find and set default the "show details" button
|
||||||
|
for button in msgbox.buttons():
|
||||||
|
if msgbox.buttonRole(button) == QtWidgets.QMessageBox.ActionRole:
|
||||||
|
msgbox.setDefaultButton(button)
|
||||||
msgbox.exec_()
|
msgbox.exec_()
|
||||||
|
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ ENTRY_DELAY = 80
|
|||||||
LINE_CLEAR_DELAY = 80
|
LINE_CLEAR_DELAY = 80
|
||||||
LOCK_DELAY = 500
|
LOCK_DELAY = 500
|
||||||
TEMPORARY_TEXT_DURATION = 1000
|
TEMPORARY_TEXT_DURATION = 1000
|
||||||
AFTER_LVL_15_ACCELERATION = 0.85
|
AFTER_LVL_15_ACCELERATION = 0.9
|
||||||
|
|
||||||
# Block Colors
|
# Block Colors
|
||||||
BLOCK_BORDER_COLOR = QtGui.QColor(0, 159, 218, 255)
|
BLOCK_BORDER_COLOR = QtGui.QColor(0, 159, 218, 255)
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
import re
|
import re
|
||||||
|
|
||||||
|
|
||||||
first_cap_re = re.compile('(.)([A-Z][a-z]+)')
|
first_cap_re = re.compile('([^.])([A-Z][a-z]+)')
|
||||||
all_cap_re = re.compile('([a-z0-9])([A-Z])')
|
all_cap_re = re.compile('([a-z0-9])([A-Z])')
|
||||||
|
|
||||||
def snake_case(s):
|
def snake_case(s):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user