|
|
|
@ -5,7 +5,7 @@
|
|
|
|
|
import sys
|
|
|
|
|
import math
|
|
|
|
|
import random
|
|
|
|
|
import qt
|
|
|
|
|
from python_tqt import qt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class LCDRange(qt.TQWidget):
|
|
|
|
@ -277,7 +277,7 @@ class GameBoard(qt.TQWidget):
|
|
|
|
|
|
|
|
|
|
quit = qt.TQPushButton("&Quit", self, "quit")
|
|
|
|
|
quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
|
|
|
|
|
self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
|
|
|
|
|
self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()"))
|
|
|
|
|
|
|
|
|
|
self.angle = LCDRange("ANGLE", self, "angle")
|
|
|
|
|
self.angle.setRange(5, 70)
|
|
|
|
@ -316,7 +316,7 @@ class GameBoard(qt.TQWidget):
|
|
|
|
|
accel = qt.TQAccel(self)
|
|
|
|
|
accel.connectItem(accel.insertItem(qt.TQt.Key_Enter), self.fire)
|
|
|
|
|
accel.connectItem(accel.insertItem(qt.TQt.Key_Return), self.fire)
|
|
|
|
|
accel.connectItem(accel.insertItem(qt.TQt.CTRL + qt.TQt.Key_Q), qt.qApp, qt.SLOT("quit()"))
|
|
|
|
|
accel.connectItem(accel.insertItem(qt.TQt.CTRL + qt.TQt.Key_Q), qt.tqApp, qt.SLOT("quit()"))
|
|
|
|
|
|
|
|
|
|
grid = qt.TQGridLayout(self, 2, 2, 10)
|
|
|
|
|
grid.addWidget(quit, 0, 0)
|
|
|
|
|